# "error writing communication packets" on percona, but not vanilla mysql server

**URL:** <https://forums.percona.com/t/error-writing-communication-packets-on-percona-but-not-vanilla-mysql-server/1897>\
**Category:** Other MySQL® Questions\
**Created:** [September 17, 2012, 7:24am UTC](https://forums.percona.com/t/error-writing-communication-packets-on-percona-but-not-vanilla-mysql-server/1897 "2012-09-17T07:24:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![systems28347](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@systems28347](https://forums.percona.com/u/systems28347)\
**Post date:** [September 17, 2012, 7:24am UTC](https://forums.percona.com/t/error-writing-communication-packets-on-percona-but-not-vanilla-mysql-server/1897/1 "2012-09-17T07:24:20Z")

</div>

I routinely restore a snapshot, made with mysqldump (–innodb-optimize-keys-enabled), but as the size is growing, I’m exepriencing a problem with the Percona distro, but not the equivalent vanilla one.

Specifically, I get a timeout (in the log: “error writing communication packets”) while restoring the biggest tables - for example:

Engine: InnoDB Version: 10 Row\_format: Compact Rows: 16205204 Avg\_row\_length: 80 Data\_length: 1302331392Max\_data\_length: 0 Index\_length: 1610137600 Data\_free: 7340032 Auto\_increment: 139395716 Collation: utf8\_general\_ci

Now, I’ve read carefully the information around, but after trying the most obvious things, I’m stuck.  
Specifically, the following are the timeout related variables:

±---------------------------±---------+| Variable\_name | Value |±---------------------------±---------+| connect\_timeout | 10 || delayed\_insert\_timeout | 300 || innodb\_lock\_wait\_timeout | 120 || innodb\_rollback\_on\_timeout | OFF || interactive\_timeout | 28800 || lock\_wait\_timeout | 31536000 || net\_read\_timeout | 1200 || net\_write\_timeout | 1200 || slave\_net\_timeout | 3600 || wait\_timeout | 28800 |±---------------------------±---------+

I’m referring to a Percona distro problem, because if I use the vanilla server, the problem doesn’t happen, while it always does with the former.

The error often happens while the innodb indexes are built, but not necessarily - sometimes also while INSERTing.

System details follow:

- Ubuntu precise x86-64 (experienced also on a Hardy x86-64)- Percona 5.5.27-rel28.1 - expand\_fast\_index\_creation = 1- Vanilla 5.5.27- configuration is the shared for both - skip-networking is enabled. - innodb buffer pool: 1 GB

---

<div class="post-metadata">

**Author:** ![niljoshi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/niljoshi/32/16889_2.png) [@niljoshi](https://forums.percona.com/u/niljoshi)\
**Post date:** [September 25, 2012, 4:31am UTC](https://forums.percona.com/t/error-writing-communication-packets-on-percona-but-not-vanilla-mysql-server/1897/2 "2012-09-25T04:31:24Z")

</div>

Hi,

Can you provide “SHOW ENGINE INNODB STATUS” output when you restoring the biggest tables and full mysql error log? It would be helpful to understand this issue.

Regards,  
Nil

---

<div class="post-metadata">

**Author:** ![systems28347](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@systems28347](https://forums.percona.com/u/systems28347)\
**Post date:** [September 25, 2012, 8:10am UTC](https://forums.percona.com/t/error-writing-communication-packets-on-percona-but-not-vanilla-mysql-server/1897/3 "2012-09-25T08:10:26Z")

</div>

A sample follows, collected just after an error. I couldn’t find any pattern in the errors occurrence; sometimes they happen shortly after starting the restore.

Statistics have been collected while running the percona distro.

=====================================120925 13:45:59 INNODB MONITOR OUTPUT=====================================Per second averages calculated from the last 21 seconds-----------------BACKGROUND THREAD-----------------srv\_master\_thread loops: 156 1\_second, 156 sleeps, 15 10\_second, 77 background, 77 flushsrv\_master\_thread log flush and writes: 287----------SEMAPHORES----------OS WAIT ARRAY INFO: reservation count 308, signal count 318Mutex spin waits 1416, rounds 6310, OS waits 187RW-shared spins 104, rounds 2972, OS waits 99RW-excl spins 1, rounds 629, OS waits 20Spin rounds per wait: 4.46 mutex, 28.58 RW-shared, 629.00 RW-excl--------FILE I/O--------I/O thread 0 state: waiting for completed aio requests (insert buffer thread)I/O thread 1 state: waiting for completed aio requests (log thread)I/O thread 2 state: waiting for completed aio requests (read thread)I/O thread 3 state: waiting for completed aio requests (read thread)I/O thread 4 state: waiting for completed aio requests (read thread)I/O thread 5 state: waiting for completed aio requests (read thread)I/O thread 6 state: waiting for completed aio requests (write thread)I/O thread 7 state: waiting for completed aio requests (write thread)I/O thread 8 state: waiting for completed aio requests (write thread)I/O thread 9 state: waiting for completed aio requests (write thread)Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] , ibuf aio reads: 0, log i/o’s: 0, sync i/o’s: 0Pending flushes (fsync) log: 0; buffer pool: 02599 OS file reads, 56566 OS file writes, 1504 OS fsyncs0.00 reads/s, 0 avg bytes/read, 326.51 writes/s, 3.90 fsyncs/s-------------------------------------INSERT BUFFER AND ADAPTIVE HASH INDEX-------------------------------------Ibuf: size 1, free list len 597, seg size 599, 0 mergesmerged operations: insert 0, delete mark 0, delete 0discarded operations: insert 0, delete mark 0, delete 0Hash table size 4425293, node heap has 2 buffer(s)31313.70 hash searches/s, 626.30 non-hash searches/s—LOG—Log sequence number 722833317016Log flushed up to 722833317016Last checkpoint at 722833317016Max checkpoint age 162184828Checkpoint age target 157116553Modified age 0Checkpoint age 00 pending log writes, 0 pending chkp writes1443 log i/o’s done, 4.29 log i/o’s/second----------------------BUFFER POOL AND MEMORY----------------------Total memory allocated 2206203904; in additional pool allocated 0Internal hash tables (constant factor + variable factor) Adaptive hash index 35439328 (35402344 + 36984) Page hash 2213656 (buffer pool 0 only) Dictionary cache 9682270 (8851984 + 830286) File system 195752 (82672 + 113080) Lock system 5313792 (5313416 + 376) Recovery system 0 (0 + 0)Dictionary memory allocated 830286Buffer pool size 131071Buffer pool size, bytes 2147467264Free buffers 77564Database pages 53505Old database pages 19730Modified db pages 0Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young 0, not young 00.00 youngs/s, 0.00 non-youngs/sPages read 1491, created 52014, written 530060.00 reads/s, 125.47 creates/s, 320.13 writes/sBuffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/sLRU len: 53505, unzip\_LRU len: 0I/O sum[0]:cur[0], unzip sum[0]:cur[0]--------------ROW OPERATIONS--------------0 queries inside InnoDB, 0 queries in queue1 read views open inside InnoDB—OLDEST VIEW—Normal read viewRead view low limit trx n:o 6EEC3FRead view up limit trx id 6EEC3FRead view low limit trx id 6EEC3FRead view individually stored trx ids:-----------------Main thread process no. 9131, id 140187853780736, state: flushing logNumber of rows inserted 18538828, updated 0, deleted 0, read 031689.40 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s------------TRANSACTIONS------------Trx id counter 6EEC3FPurge done for trx’s n:o \< 6EEAEA undo n:o \< 0History list length 1641LIST OF TRANSACTIONS FOR EACH SESSION:—TRANSACTION 0, not startedMySQL thread id 18, OS thread handle 0x7f800635c700, query id 955 localhost rootshow engine innodb status----------------------------END OF INNODB MONITOR OUTPUT============================
