I'm using Google Compute Engine instance (f1.micro). Since google_metadata process (Python) is consuming CPUs. (Because of this Google Cloud Console suggests "Consider switching to the machine type: g1-small (1 vCPU, 1.7 GB memory)").
Does anyone know what the process is for and how can we remediate this situation?
top - 14:47:46 up 10 min, 1 user, load average: 1.10, 1.12, 0.70
Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie
%Cpu(s): 83.6 us, 16.4 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 608416 total, 498272 used, 110144 free, 20868 buffers
KiB Swap: 0 total, 0 used, 0 free. 310984 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
744 root 20 0 31416 15452 6188 R 99.9 2.5 8:56.75 google_metadata
1 root 20 0 96548 5784 3832 S 0.0 1.0 0:01.07 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
7 root 20 0 0 0 0 S 0.0 0.0 0:00.06 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
9 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
10 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
12 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback
16 root 39 19 0 0 0 S 0.0 0.0 0:00.00 khugepaged
17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto
18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd
19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd
21 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff
suztomo#light-composer ~ $ ps -ef |grep google_metadata
root 744 1 90 14:37 ? 00:09:01 /usr/bin/python2.7 /usr/lib/python-exec/python2.7/google_metadata_script_runner --script-type startup
It turned out that the process is responsible to run "startup-script" in metadata of Google Compute Engine virtual machines, which usually stops after such script. However, in my settings, the startup script runs forever to continuously run some commands, and unexpectedly caused the high-CPU issue.
Remediation would be not to have such long-running startup-script.
Related
I am working on my own DXF writer because I only need certain elements (such as LINE, POLYLINE, POINT an SPLINE).
I started with tfpdxfbridge and the idea was to include SPLINE support too. When I tried to manually add SPLINE to ENTITIES in the *.dxf file, the file is not opened anymore. Example of SPLINE:
SPLINE
5
274
330
1F
100
AcDbEntity
8
0
100
AcDbSpline
210
0.0
220
0.0
230
1.0
70
8
71
3
72
9
73
5
74
0
42
0.0000000001
43
0.0000000001
40
0.0
40
0.0
40
0.0
40
0.0
40
1.0
40
2.0
40
2.0
40
2.0
40
2.0
10
747.2822841342859
20
1453.676625339077
30
0.0
10
1364.898523055965
20
2324.178049512178
30
0.0
10
2830.924436828291
20
1999.364085075557
30
0.0
10
1130.854480067877
20
862.5152127789023
30
0.0
10
2837.42565094653
20
791.0561394394999
30
0.0
0
Does anybody know what the problem might be or how to make the file work again?
Here is the full file generated with tfpdxfbridge (except the SPLINE part, obviously).
0
SECTION
2
HEADER
999
Generator: TFPDxfWriteBridge
999
By jmpessoa#hotmail.com
9
$DIMASZ
40
0.1800
9
$DIMTSZ
40
0
9
$DIMGAP
40
0.0900
9
$DIMEXO
40
0.0625
9
$DIMDLI
40
0.38
9
$DIMDLE
40
0.0
9
$DIMEXE
40
0.1800
9
$DIMTXT
40
0.1800
9
$DIMTXTDIRECTION
70
0
9
$DIMTIH
70
1
9
$DIMTAD
70
0
9
$DIMCLRD
70
256
9
$DIMCLRE
70
256
9
$DIMCLRT
70
256
9
$DIMASO
70
1
9
$DIMASSOC
280
2
9
$DIMSHO
70
0
9
$DIMLUNIT
70
2
9
$DIMDEC
70
4
9
$DIMADEC
70
2
9
$INSBASE
10
0.0
20
0.0
30
0.0
9
$EXTMIN
10
0.0
20
0.0
9
$EXTMAX
10
3200.0
20
3200.0
9
$LINMIN
10
0.0
20
0.0
9
$LINMAX
10
3200.0
20
3200.0
0
ENDSEC
0
SECTION
2
TABLES
0
TABLE
2
LTYPE
70
8
100
AcDbSymbolTable
100
AcDbLTypeTable
0
LTYPE
2
CONTINUOUS
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
____________
72
65
73
0
40
0.000
70
0
0
LTYPE
2
HIDDEN
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
__ __ __
72
65
73
2
40
0.375
49
0.250
49
-0.125
70
0
0
LTYPE
2
CENTER
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
____ _ ____ _
72
65
73
4
40
2.000
49
1.250
49
-0.250
49
0.250
49
-0.250
70
0
0
LTYPE
2
DOT
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
. . . . .
72
65
73
2
40
0.250
49
0.000
49
-0.250
70
0
0
LTYPE
2
DASHDOT
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
__ . __ .
72
65
73
4
40
1.000
49
0.500
49
-0.250
49
0.000
49
-0.250
70
0
0
LTYPE
2
DIVIDE
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
____ . . ____ . .
72
65
73
6
40
1.250
49
0.500
49
-0.250
49
0.000
49
-0.250
49
0.000
49
-0.250
70
0
0
LTYPE
2
BORDER
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
__ __ . __ __ .
72
65
73
6
40
1.750
49
0.500
49
-0.250
49
0.500
49
-0.250
49
0.000
49
-0.250
70
0
0
LTYPE
2
MJLINE
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
3
__ __ __
72
65
73
2
40
0.375
49
0.250
49
-0.125
70
0
0
ENDTAB
0
TABLE
2
STYLE
70
2
100
AcDbSymbolTable
100
AcDbStyleTable
0
STYLE
2
DEFAULT
71
0
40
0.00
42
1.00
50
0.00
41
1.00
3
ARIAL.TTF
100
AcDbSymbolTableRecord
100
AcDbTextStyleTableRecord
70
0
0
STYLE
2
ISOCPEUR
71
0
40
0.00
42
1.00
50
0.00
41
1.00
3
isocpeur.ttf
100
AcDbSymbolTableRecord
100
AcDbTextStyleTableRecord
70
0
0
ENDTAB
0
TABLE
2
LAYER
70
9
100
AcDbSymbolTable
100
AcDbLayerTable
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
0
70
0
62
7
6
CONTINUOUS
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
HIDDEN_YELLOW
70
0
62
2
6
HIDDEN
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
CENTER_RED
70
0
62
1
6
CENTER
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
DOT_GREEN
70
0
62
3
6
DOT
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
DASHDOT_CYAN
70
0
62
4
6
DASHDOT
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
DIVIDE_BLUE
70
0
62
5
6
DIVIDE
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
BORDER_MAGENTA
70
0
62
6
6
BORDER
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
CONTINUOUS_GRAY
70
0
62
8
6
CONTINUOUS
0
LAYER
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
MYLAYER
70
0
62
5
6
MJLINE
0
ENDTAB
0
TABLE
2
DIMSTYLE
70
2
100
AcDbSymbolTable
100
AcDbDimStyleTable
0
DIMSTYLE
100
AcDbSymbolTableRecord
100
AcDbDimStyleTableRecord
2
GENERIC
70
0
77
0
176
256
177
256
178
256
41
0.18
46
0.00
44
0.18
42
0.06
147
0.09
140
0.18
3
4
5
6
7
40
1.0
43
0.38
45
0.0
47
0.0
48
0.0
141
0.09
142
0.0
143
25.39999
144
1.0
145
0.0
146
1.0
71
0
72
0
73
1
74
1
75
0
76
0
78
0
170
0
171
2
172
0
173
0
174
0
175
0
0
DIMSTYLE
100
AcDbSymbolTableRecord
100
AcDbDimStyleTableRecord
2
CUSTOM
70
0
77
0
176
3
177
3
178
3
41
0.18
46
0.00
44
0.18
42
0.06
147
0.09
140
0.18
3
4
5
6
7
40
1.0
43
0.38
45
0.0
47
0.0
48
0.0
141
0.09
142
0.0
143
25.39999
144
1.0
145
0.0
146
1.0
71
0
72
0
73
1
74
1
75
0
76
0
78
0
170
0
171
2
172
0
173
0
174
0
175
0
0
ENDTAB
0
ENDSEC
0
SECTION
2
BLOCKS
0
ENDSEC
0
SECTION
2
ENTITIES
0
CIRCLE
100
AcDbEntity
8
BORDER_MAGENTA
62
256
6
BYLAYER
39
0.00
100
AcDbCircle
10
6.00
20
4.00
30
0.00
40
1.20
0
ARC
100
AcDbEntity
8
MYLAYER
62
256
6
BYLAYER
39
0.00
100
AcDbCircle
10
10.00
20
6.00
30
0.00
40
1.20
100
AcDbArc
50
10.00
51
80.00
0
POLYLINE
100
AcDbEntity
8
MYLAYER
62
256
6
BYLAYER
100
AcDb2dPolyline
70
0
66
1
0
VERTEX
100
AcDbEntity
8
MYLAYER
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
0.00
20
0.00
30
0.0
0
VERTEX
100
AcDbEntity
8
MYLAYER
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
0.00
20
3.00
30
0.0
0
VERTEX
100
AcDbEntity
8
MYLAYER
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
1.50
20
1.50
30
0.0
0
VERTEX
100
AcDbEntity
8
MYLAYER
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
3.00
20
3.00
30
0.0
0
VERTEX
100
AcDbEntity
8
MYLAYER
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
3.00
20
0.00
30
0.0
0
SEQEND
0
POLYLINE
100
AcDbEntity
8
DOT_GREEN
62
256
6
BYLAYER
100
AcDb2dPolyline
70
1
66
1
0
VERTEX
100
AcDbEntity
8
DOT_GREEN
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
-1.00
20
-1.00
30
0.0
0
VERTEX
100
AcDbEntity
8
DOT_GREEN
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
-1.00
20
4.00
30
0.0
0
VERTEX
100
AcDbEntity
8
DOT_GREEN
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
4.00
20
4.00
30
0.0
0
VERTEX
100
AcDbEntity
8
DOT_GREEN
62
256
6
BYLAYER
39
0.00
100
AcDbVertex
100
AcDb2dVertex
10
5.00
20
-3.00
30
0.0
0
SEQEND
0
ENDSEC
0
EOF
When I try to recover your DXF file I get the following:
Unknown header variable $LINMAX ignored on line 116.
Undefined group code 330 for object on line 1018.
Invalid or incomplete DXF input -- drawing discarded.
In your DXF you have:
330
1F
I see that 330 is included when I do my own spline and save as DXF. But, 330 is according to the documents:
Soft-pointer ID/handle to owner dictionary (optional)
This DXF will recover without any errors:
https://pastebin.com/KRpzCd4M
Perhaps you can do a comparison.
Hello I have always error 522 with Cloudflare and SSL
I use 2 url the first is via Cloudflare with full ssl https://example.com and second is with my ip and without Cloudflare http://XXX.XXX. If i start benchmaking mysql with AB command (or with simple ajax request) the siteweb with Cloudflare down imediatly with error 522 but the website with my IP never down and continue to work faster
I have a free plan in Cloudflare with a auto signed SSL certificat in my server with openssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/s1.key -out /etc/apache2/ssl/s1.crt
I changed my.cnf for limit max_user_connections to 20 but not working i dont have error in apache and syslog
My server is a debian 7 3 cores 4gb in OVH
top
top - 07:26:58 up 15:25, 2 users, load average: 2.23, 2.28, 2.18
Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie
%Cpu(s): 8.1 us, 1.2 sy, 0.0 ni, 88.7 id, 2.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 4194304 total, 354532 used, 3839772 free, 0 buffers
KiB Swap: 131072 total, 0 used, 131072 free, 159668 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11715 mysql 20 0 585m 100m 7824 S 28.1 2.5 117:17.15 mysqld
14469 www-data 20 0 222m 12m 4312 R 2.9 0.3 0:20.86 apache2
14567 www-data 20 0 222m 11m 3604 S 2.0 0.3 0:12.89 apache2
14579 www-data 20 0 221m 11m 3612 S 2.0 0.3 0:07.69 apache2
2599 root 20 0 24364 2208 1296 S 1.0 0.1 10:53.41 htop
5317 root 20 0 24292 2184 1296 S 0.7 0.1 10:41.42 htop
14577 www-data 20 0 221m 10m 3400 S 0.7 0.3 0:08.94 apache2
1 root 20 0 10604 796 664 S 0.0 0.0 0:15.10 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd/46179
3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper/46179
4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/0
5 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/1
6 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/2
7 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/3
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/4
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/5
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/6
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/46179/7
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 nfsiod/46179
1533 root 20 0 30764 488 244 S 0.0 0.0 0:00.00 syslog-ng
1534 root 20 0 88480 3572 2480 S 0.0 0.1 0:02.10 syslog-ng
1658 messageb 20 0 29760 556 296 S 0.0 0.0 0:00.00 dbus-daemon
1676 bind 20 0 202m 22m 2324 S 0.0 0.5 0:02.13 named
1682 root 20 0 49888 1236 628 S 0.0 0.0 0:00.37 sshd
1717 root 20 0 72552 2132 524 S 0.0 0.1 0:19.69 sendmail-mta
2295 root 20 0 20844 1024 776 S 0.0 0.0 0:02.76 cron
2398 proftpd 20 0 99.7m 1944 500 S 0.0 0.0 0:09.15 proftpd
2422 root 20 0 52324 1672 1152 S 0.0 0.0 0:00.02 login
2423 root 20 0 14532 836 676 S 0.0 0.0 0:00.00 getty
2424 root 20 0 14532 832 676 S 0.0 0.0 0:00.00 getty
2425 root 20 0 14532 828 676 S 0.0 0.0 0:00.00 getty
2426 root 20 0 14532 832 676 S 0.0 0.0 0:00.00 getty
2427 root 20 0 14532 832 676 S 0.0 0.0 0:00.00 getty
2506 root 20 0 24368 1964 776 S 0.0 0.0 0:46.24 screen
2507 root 20 0 19944 2272 1672 S 0.0 0.1 0:02.25 bash
2508 root 20 0 19916 2176 1604 S 0.0 0.1 0:00.02 bash
5316 root 20 0 19916 2176 1604 S 0.0 0.1 0:00.00 bash
9522 root 20 0 220m 10m 4436 S 0.0 0.3 0:36.96 apache2
10166 root 20 0 19924 2216 1636 S 0.0 0.1 0:00.00 bash
A 522 error generally indicates something blocking requests from our IPs on your server or hosting provider.
Additional troubleshooting tips for a 522 error and CloudFlare.
I have setup an Ubuntu 14.04 LTS on i7-2600 box with 24G ram. I use mariadb-10.0.11 to replace mysql for more performance. And I use matmul.c (c) 2009, Rajorshi Biswas to test the system performance.The result is unusual, there is no access to mysql (mariab) server and the matnul.c result is
root#mercury:~/openmp/testopenmp# ./matmul.gcc
Enter dimension ('N' for 'NxN' matrix) (100-2000): 2000
Populating array with random values...
Completed array init.
Crunching without OMP... took 55.691565 seconds.
Crunching with OMP... took 15.113471 seconds.
but if i turn mysql mariadb off by services mysql stop the speed is much faster.
root#mercury:~/openmp/testopenmp# ./matmul.gcc
Enter dimension ('N' for 'NxN' matrix) (100-2000): 2000
Populating array with random values...
Completed array init.
Crunching without OMP... took 26.777045 seconds.
Crunching with OMP... took 3.646939 seconds
The single thread only use half time and the OMP version even faster.
Is there is configuration issues to make such performance slow down issue or it just natural??
Remark, there is no connection to mysql during the test.
I enclosed the matural.c and mysql.cnf
(the use of matural.c is just an example, all other program run slower 50% when mysql is running.)
/*
* Sample program to test runtime of simple matrix multiply
* with and without OpenMP on gcc-4.3.3-tdm1 (mingw)
*
* (c) 2009, Rajorshi Biswas
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#include <omp.h>
int main(int argc, char **argv)
{
int i,j,k;
int n;
double temp;
double start, end, run;
printf("Enter dimension ('N' for 'NxN' matrix) (100-2000): ");
scanf("%d", &n);
assert( n >= 100 && n <= 2000 );
int **arr1 = malloc( sizeof(int*) * n);
int **arr2 = malloc( sizeof(int*) * n);
int **arr3 = malloc( sizeof(int*) * n);
for(i=0; i<n; ++i) {
arr1[i] = malloc( sizeof(int) * n );
arr2[i] = malloc( sizeof(int) * n );
arr3[i] = malloc( sizeof(int) * n );
}
printf("Populating array with random values...\n");
srand( time(NULL) );
for(i=0; i<n; ++i) {
for(j=0; j<n; ++j) {
arr1[i][j] = (rand() % n);
arr2[i][j] = (rand() % n);
}
}
printf("Completed array init.\n");
printf("Crunching without OMP...");
fflush(stdout);
start = omp_get_wtime();
for(i=0; i<n; ++i) {
for(j=0; j<n; ++j) {
temp = 0;
for(k=0; k<n; ++k) {
temp += arr1[i][k] * arr2[k][j];
}
arr3[i][j] = temp;
}
}
end = omp_get_wtime();
printf(" took %f seconds.\n", end-start);
printf("Crunching with OMP...");
fflush(stdout);
start = omp_get_wtime();
#pragma omp parallel for private(i, j, k, temp)
for(i=0; i<n; ++i) {
for(j=0; j<n; ++j) {
temp = 0;
for(k=0; k<n; ++k) {
temp += arr1[i][k] * arr2[k][j];
}
arr3[i][j] = temp;
}
}
end = omp_get_wtime();
printf(" took %f seconds.\n", end-start);
return 0;
}
And my.cnf
root#mercury:~/openmp/testopenmp# cat /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
#port = 3306
socket = /run/mysqld/mysqld.sock
#character_set_server = utf8
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /run/mysqld/mysqld.sock
nice = 19
[mysqld]
#
# * Basic Settings
#
#
# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#
skip-host-cache
skip-name-resolve
character_set_server = utf8
init_connect = 'SET NAMES utf8'
user = mysql
socket = /run/mysqld/mysqld.sock
#port = 3306
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
tmpdir = /tmp
#log = /var/log/mysql.log
general_log_file = /var/log/mysql.log
general_log = 1
# skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer_size = 16M
max_allowed_packet = 1M
sort_buffer_size = 1M
net_buffer_length = 16K
myisam_sort_buffer_size = 8M
# Don't listen on a TCP/IP port at all.
# skip-networking
# required unique id between 1 and 2^32 - 1
server-id = 1
# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /srv/mysql
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /srv/mysql
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
#!includedir /etc/mysql/conf.d/
root#mercury:/etc/mysql/conf.d# cat *
#
# The MySQL 5.6 database server configuration file.
#
# This custom MySQL 5.6 specific configuration file
# adds on top of the existing default my.cnf file at
# - /etc/mysql/my.cnf.
#
# Please add any extra MySQL 5.6 options in this file
# for sake of clarity.
#
# You may uncomment any existing option to enable it
#
# sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_safe]
syslog
root#mercury:/etc/mysql/conf.d#
The issue is not solved, so I enclosed the processes list before and after mysql service running. Sorry to put as an answer as the question is over 300000 chars.
The processes list when mysql service is running
root#mercury:~# ps -elf
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 S root 1 0 0 80 0 - 8348 poll_s 21:07 ? 00:00:00 /sbin/init
1 S root 2 0 0 80 0 - 0 kthrea 21:07 ? 00:00:00 [kthreadd]
1 S root 3 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/0]
1 S root 4 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:0]
1 S root 5 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/0:0H]
1 S root 6 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:0]
1 S root 7 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_sched]
1 S root 8 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/0]
1 S root 9 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/1]
1 S root 10 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/2]
1 S root 11 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/3]
1 S root 12 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/4]
1 S root 13 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/5]
1 S root 14 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/6]
1 S root 15 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/7]
1 S root 16 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_bh]
1 S root 17 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/0]
1 S root 18 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/1]
1 S root 19 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/2]
1 S root 20 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/3]
1 S root 21 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/4]
1 S root 22 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/5]
1 S root 23 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/6]
1 S root 24 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/7]
1 S root 25 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/0]
5 S root 26 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/0]
5 S root 27 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/1]
1 S root 28 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/1]
1 S root 29 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/1]
1 S root 30 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:0]
1 S root 31 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/1:0H]
5 S root 32 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/2]
1 S root 33 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/2]
1 S root 34 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/2]
1 S root 35 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:0]
1 S root 36 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/2:0H]
5 S root 37 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/3]
1 S root 38 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/3]
1 S root 39 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/3]
1 S root 40 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:0]
1 S root 41 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/3:0H]
5 S root 42 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/4]
1 S root 43 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/4]
1 S root 44 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/4]
1 S root 45 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:0]
1 S root 46 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/4:0H]
5 S root 47 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/5]
1 S root 48 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/5]
1 S root 49 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/5]
1 S root 50 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:0]
1 S root 51 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/5:0H]
5 S root 52 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/6]
1 S root 53 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/6]
1 S root 54 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/6]
1 S root 55 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:0]
1 S root 56 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/6:0H]
5 S root 57 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/7]
1 S root 58 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/7]
1 S root 59 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/7]
1 S root 60 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:0]
1 S root 61 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/7:0H]
1 S root 62 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [khelper]
5 S root 63 2 0 80 0 - 0 devtmp 21:07 ? 00:00:00 [kdevtmpfs]
1 S root 64 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [netns]
1 S root 65 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [writeback]
1 S root 66 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kintegrityd]
1 S root 67 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 68 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:0]
1 S root 69 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kblockd]
1 S root 70 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ata_sff]
1 S root 71 2 0 80 0 - 0 hub_th 21:07 ? 00:00:00 [khubd]
1 S root 72 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [md]
1 S root 73 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [devfreq_wq]
1 S root 74 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:1]
1 S root 75 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:1]
1 S root 79 2 0 80 0 - 0 watchd 21:07 ? 00:00:00 [khungtaskd]
1 S root 80 2 0 80 0 - 0 kswapd 21:07 ? 00:00:00 [kswapd0]
1 S root 81 2 0 85 5 - 0 ksm_sc 21:07 ? 00:00:00 [ksmd]
1 S root 82 2 0 99 19 - 0 khugep 21:07 ? 00:00:00 [khugepaged]
1 S root 83 2 0 80 0 - 0 fsnoti 21:07 ? 00:00:00 [fsnotify_mark]
1 S root 84 2 0 80 0 - 0 ecrypt 21:07 ? 00:00:00 [ecryptfs-kthrea]
1 S root 85 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [crypto]
1 S root 97 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kthrotld]
1 S root 98 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:1]
1 S root 99 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:1]
1 S root 118 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [deferwq]
1 S root 119 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [charger_manager]
1 S root 128 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:1]
1 S root 179 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kpsmoused]
1 S root 180 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:2]
1 S root 181 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:1]
1 S root 182 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_0]
1 S root 183 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_1]
1 S root 184 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_2]
1 S root 185 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_3]
1 S root 186 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_4]
1 S root 187 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_5]
1 S root 188 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:2]
1 S root 189 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:3]
1 S root 190 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:4]
1 S root 191 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:5]
1 S root 192 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:6]
1 S root 193 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:7]
1 S root 194 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_6]
1 S root 195 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_7]
1 S root 196 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:8]
1 S root 197 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:9]
1 S root 198 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:1]
1 S root 199 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:1]
1 S root 201 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:10]
1 S root 206 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 214 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:1]
1 S root 215 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-worker-1]
1 S root 216 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-genwork-1]
1 S root 217 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-submit-1]
1 S root 218 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delalloc-]
1 S root 219 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-fixup-1]
1 S root 220 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-1]
1 S root 221 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 222 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-rmw-1]
1 S root 223 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-rai]
1 S root 224 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 225 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-wri]
1 S root 226 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-freespace]
1 S root 227 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delayed-m]
1 S root 228 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-cache-1]
1 S root 229 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-readahead]
1 S root 230 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-flush_del]
1 S root 231 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-qgroup-re]
1 S root 232 2 0 80 0 - 0 cleane 21:07 ? 00:00:00 [btrfs-cleaner]
1 S root 233 2 0 80 0 - 0 transa 21:07 ? 00:00:00 [btrfs-transacti]
1 S root 402 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:1]
1 S root 423 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 437 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda1-8]
1 S root 438 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 442 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda5-8]
1 S root 443 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 447 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda6-8]
1 S root 448 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 469 1 0 80 0 - 5001 poll_s 21:07 ? 00:00:00 upstart-udev-bridge --daemon
5 S root 478 1 0 80 0 - 12888 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-udevd --daemon
5 S message+ 488 1 0 80 0 - 9810 ep_pol 21:07 ? 00:00:00 dbus-daemon --system --fork
1 S root 556 2 0 9 - - 0 irq_th 21:07 ? 00:00:00 [irq/61-mei_me]
4 S root 557 1 0 80 0 - 10863 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-logind
5 S syslog 599 1 0 80 0 - 63962 poll_s 21:07 ? 00:00:00 rsyslogd
1 S root 624 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [led_workqueue]
1 S root 678 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-2]
1 S root 700 1 0 80 0 - 3986 poll_s 21:07 ? 00:00:00 upstart-file-bridge --daemon
1 S root 717 1 0 80 0 - 3815 poll_s 21:07 ? 00:00:00 upstart-socket-bridge --daemon
4 S root 1008 1 0 80 0 - 3955 n_tty_ 21:07 tty4 00:00:00 /sbin/getty -8 38400 tty4
4 S root 1015 1 0 80 0 - 3955 n_tty_ 21:07 tty2 00:00:00 /sbin/getty -8 38400 tty2
4 S root 1016 1 0 80 0 - 3955 n_tty_ 21:07 tty3 00:00:00 /sbin/getty -8 38400 tty3
1 S root 1033 1 0 80 0 - 1092 poll_s 21:07 ? 00:00:00 acpid -c /etc/acpi/events -s /var/run/acpid.socke
4 S root 1034 1 0 80 0 - 15342 poll_s 21:07 ? 00:00:00 /usr/sbin/sshd -D
1 S root 1036 1 0 80 0 - 5914 hrtime 21:07 ? 00:00:00 cron
1 S daemon 1038 1 0 80 0 - 4785 hrtime 21:07 ? 00:00:00 atd
5 S root 1078 1 0 80 0 - 4816 hrtime 21:07 ? 00:00:00 /usr/sbin/irqbalance
1 S root 1278 1 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1279 1 0 80 0 - 1085 pipe_w 21:07 ? 00:00:00 logger -s -p daemon.error -t ipsec__plutorun
1 S root 1280 1278 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1282 1278 0 80 0 - 1111 pipe_w 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutoload --wait no --pos
4 S root 1285 1280 0 80 0 - 23516 poll_s 21:07 ? 00:00:00 /usr/lib/ipsec/pluto --nofork --secretsfile /etc/
1 S root 1389 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 0
1 S root 1390 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 1
1 S root 1392 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 2
1 S root 1393 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 3
1 S root 1394 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 4
1 S root 1395 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 5
1 S root 1396 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 6
0 S root 1532 1285 0 80 0 - 1589 poll_s 21:07 ? 00:00:00 _pluto_adns
4 S root 1552 1 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadi
4 S mysql 1702 1552 0 99 19 - 174953 poll_s 21:07 ? 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/
5 S root 1744 1 0 80 0 - 6226 sigsus 21:07 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
5 S www-data 1746 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1747 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1748 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1749 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S root 1761 1 0 80 0 - 108450 ep_pol 21:07 ? 00:00:00 php-fpm: master process (/usr/local/php/etc/php-f
5 S www-data 1762 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
5 S www-data 1763 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
4 S root 1860 1 0 80 0 - 6336 ep_pol 21:07 ? 00:00:00 /usr/lib/postfix/master
4 S postfix 1869 1860 0 80 0 - 6852 ep_pol 21:07 ? 00:00:00 pickup -l -t unix -u -c
4 S postfix 1870 1860 0 80 0 - 6865 ep_pol 21:07 ? 00:00:00 qmgr -l -t unix -u
1 S root 1878 1 0 80 0 - 2671 poll_s 21:07 ? 00:00:00 /usr/sbin/pptpd
1 S root 1894 1 0 80 0 - 1110 poll_s 21:07 ? 00:00:00 /usr/sbin/xl2tpd
4 S root 1948 1 0 80 0 - 3955 n_tty_ 21:07 tty1 00:00:00 /sbin/getty -8 38400 tty1
4 S root 1961 1034 0 80 0 - 26409 poll_s 21:07 ? 00:00:00 sshd: root#pts/0
1 S root 1963 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-wri]
1 S root 1965 2 0 80 0 - 0 kaudit 21:08 ? 00:00:00 [kauditd]
4 S root 2012 1961 0 80 0 - 5848 wait 21:08 pts/0 00:00:00 -bash
0 R root 2028 2012 0 80 0 - 4612 - 21:08 pts/0 00:00:00 ps -elf
The processes list after mysql service stopped.
root#mercury:~# service mysql stop
Shutting down MySQL.. SUCCESS!
root#mercury:~# ps -elf
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 S root 1 0 0 80 0 - 8348 poll_s 21:07 ? 00:00:00 /sbin/init
1 S root 2 0 0 80 0 - 0 kthrea 21:07 ? 00:00:00 [kthreadd]
1 S root 3 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/0]
1 S root 5 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/0:0H]
1 S root 6 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:0]
1 S root 7 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_sched]
1 S root 8 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/0]
1 S root 9 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/1]
1 S root 10 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/2]
1 S root 11 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/3]
1 S root 12 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/4]
1 S root 13 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/5]
1 S root 14 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/6]
1 S root 15 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/7]
1 S root 16 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_bh]
1 S root 17 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/0]
1 S root 18 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/1]
1 S root 19 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/2]
1 S root 20 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/3]
1 S root 21 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/4]
1 S root 22 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/5]
1 S root 23 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/6]
1 S root 24 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/7]
1 S root 25 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/0]
5 S root 26 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/0]
5 S root 27 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/1]
1 S root 28 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/1]
1 S root 29 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/1]
1 S root 30 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:0]
1 S root 31 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/1:0H]
5 S root 32 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/2]
1 S root 33 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/2]
1 S root 34 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/2]
1 S root 35 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:0]
1 S root 36 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/2:0H]
5 S root 37 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/3]
1 S root 38 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/3]
1 S root 39 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/3]
1 S root 40 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:0]
1 S root 41 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/3:0H]
5 S root 42 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/4]
1 S root 43 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/4]
1 S root 44 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/4]
1 S root 45 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:0]
1 S root 46 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/4:0H]
5 S root 47 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/5]
1 S root 48 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/5]
1 S root 49 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/5]
1 S root 50 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:0]
1 S root 51 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/5:0H]
5 S root 52 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/6]
1 S root 53 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/6]
1 S root 54 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/6]
1 S root 55 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:0]
1 S root 56 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/6:0H]
5 S root 57 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/7]
1 S root 58 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/7]
1 S root 59 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/7]
1 S root 60 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:0]
1 S root 61 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/7:0H]
1 S root 62 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [khelper]
5 S root 63 2 0 80 0 - 0 devtmp 21:07 ? 00:00:00 [kdevtmpfs]
1 S root 64 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [netns]
1 S root 65 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [writeback]
1 S root 66 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kintegrityd]
1 S root 67 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 68 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:0]
1 S root 69 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kblockd]
1 S root 70 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ata_sff]
1 S root 71 2 0 80 0 - 0 hub_th 21:07 ? 00:00:00 [khubd]
1 S root 72 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [md]
1 S root 73 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [devfreq_wq]
1 S root 74 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:1]
1 S root 79 2 0 80 0 - 0 watchd 21:07 ? 00:00:00 [khungtaskd]
1 S root 80 2 0 80 0 - 0 kswapd 21:07 ? 00:00:00 [kswapd0]
1 S root 81 2 0 85 5 - 0 ksm_sc 21:07 ? 00:00:00 [ksmd]
1 S root 82 2 0 99 19 - 0 khugep 21:07 ? 00:00:00 [khugepaged]
1 S root 83 2 0 80 0 - 0 fsnoti 21:07 ? 00:00:00 [fsnotify_mark]
1 S root 84 2 0 80 0 - 0 ecrypt 21:07 ? 00:00:00 [ecryptfs-kthrea]
1 S root 85 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [crypto]
1 S root 97 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kthrotld]
1 S root 98 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:1]
1 S root 99 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:1]
1 S root 118 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [deferwq]
1 S root 119 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [charger_manager]
1 S root 128 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:1]
1 S root 179 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kpsmoused]
1 S root 180 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:2]
1 S root 181 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:1]
1 S root 182 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_0]
1 S root 183 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_1]
1 S root 184 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_2]
1 S root 185 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_3]
1 S root 186 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_4]
1 S root 187 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_5]
1 S root 194 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_6]
1 S root 195 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_7]
1 S root 197 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:9]
1 S root 198 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:1]
1 S root 199 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:1]
1 S root 206 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 214 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:1]
1 S root 215 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-worker-1]
1 S root 216 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-genwork-1]
1 S root 217 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-submit-1]
1 S root 218 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delalloc-]
1 S root 219 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-fixup-1]
1 S root 220 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-1]
1 S root 221 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 222 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-rmw-1]
1 S root 223 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-rai]
1 S root 224 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 226 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-freespace]
1 S root 227 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delayed-m]
1 S root 228 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-cache-1]
1 S root 229 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-readahead]
1 S root 230 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-flush_del]
1 S root 231 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-qgroup-re]
1 S root 232 2 0 80 0 - 0 cleane 21:07 ? 00:00:00 [btrfs-cleaner]
1 S root 233 2 0 80 0 - 0 transa 21:07 ? 00:00:00 [btrfs-transacti]
1 S root 402 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:1]
1 S root 437 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda1-8]
1 S root 438 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 442 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda5-8]
1 S root 443 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 447 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda6-8]
1 S root 448 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 469 1 0 80 0 - 5001 poll_s 21:07 ? 00:00:00 upstart-udev-bridge --daemon
5 S root 478 1 0 80 0 - 12888 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-udevd --daemon
5 S message+ 488 1 0 80 0 - 9810 ep_pol 21:07 ? 00:00:00 dbus-daemon --system --fork
1 S root 556 2 0 9 - - 0 irq_th 21:07 ? 00:00:00 [irq/61-mei_me]
4 S root 557 1 0 80 0 - 10863 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-logind
5 S syslog 599 1 0 80 0 - 63962 poll_s 21:07 ? 00:00:00 rsyslogd
1 S root 624 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [led_workqueue]
1 S root 700 1 0 80 0 - 3986 poll_s 21:07 ? 00:00:00 upstart-file-bridge --daemon
1 S root 717 1 0 80 0 - 3815 poll_s 21:07 ? 00:00:00 upstart-socket-bridge --daemon
4 S root 1008 1 0 80 0 - 3955 n_tty_ 21:07 tty4 00:00:00 /sbin/getty -8 38400 tty4
4 S root 1015 1 0 80 0 - 3955 n_tty_ 21:07 tty2 00:00:00 /sbin/getty -8 38400 tty2
4 S root 1016 1 0 80 0 - 3955 n_tty_ 21:07 tty3 00:00:00 /sbin/getty -8 38400 tty3
1 S root 1033 1 0 80 0 - 1092 poll_s 21:07 ? 00:00:00 acpid -c /etc/acpi/events -s /var/run/acpid.socke
4 S root 1034 1 0 80 0 - 15342 poll_s 21:07 ? 00:00:00 /usr/sbin/sshd -D
1 S root 1036 1 0 80 0 - 5914 hrtime 21:07 ? 00:00:00 cron
1 S daemon 1038 1 0 80 0 - 4785 hrtime 21:07 ? 00:00:00 atd
5 S root 1078 1 0 80 0 - 4816 hrtime 21:07 ? 00:00:00 /usr/sbin/irqbalance
1 S root 1278 1 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1279 1 0 80 0 - 1085 pipe_w 21:07 ? 00:00:00 logger -s -p daemon.error -t ipsec__plutorun
1 S root 1280 1278 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1282 1278 0 80 0 - 1111 pipe_w 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutoload --wait no --pos
4 S root 1285 1280 0 80 0 - 23516 poll_s 21:07 ? 00:00:00 /usr/lib/ipsec/pluto --nofork --secretsfile /etc/
1 S root 1389 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 0
1 S root 1390 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 1
1 S root 1392 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 2
1 S root 1393 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 3
1 S root 1394 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 4
1 S root 1395 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 5
1 S root 1396 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 6
0 S root 1532 1285 0 80 0 - 1589 poll_s 21:07 ? 00:00:00 _pluto_adns
5 S root 1744 1 0 80 0 - 6226 sigsus 21:07 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
5 S www-data 1746 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1747 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1748 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1749 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S root 1761 1 0 80 0 - 108450 ep_pol 21:07 ? 00:00:00 php-fpm: master process (/usr/local/php/etc/php-f
5 S www-data 1762 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
5 S www-data 1763 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
4 S root 1860 1 0 80 0 - 6336 ep_pol 21:07 ? 00:00:00 /usr/lib/postfix/master
4 S postfix 1869 1860 0 80 0 - 6852 ep_pol 21:07 ? 00:00:00 pickup -l -t unix -u -c
4 S postfix 1870 1860 0 80 0 - 6865 ep_pol 21:07 ? 00:00:00 qmgr -l -t unix -u
1 S root 1878 1 0 80 0 - 2671 poll_s 21:07 ? 00:00:00 /usr/sbin/pptpd
1 S root 1894 1 0 80 0 - 1110 poll_s 21:07 ? 00:00:00 /usr/sbin/xl2tpd
4 S root 1948 1 0 80 0 - 3955 n_tty_ 21:07 tty1 00:00:00 /sbin/getty -8 38400 tty1
4 S root 1961 1034 0 80 0 - 26409 - 21:07 ? 00:00:00 sshd: root#pts/0
1 S root 1963 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-wri]
1 S root 1965 2 0 80 0 - 0 kaudit 21:08 ? 00:00:00 [kauditd]
4 S root 2012 1961 0 80 0 - 5863 wait 21:08 pts/0 00:00:00 -bash
1 S root 2035 2 0 80 0 - 0 worker 21:13 ? 00:00:00 [btrfs-endio-2]
0 R root 2064 2012 0 80 0 - 4612 - 21:14 pts/0 00:00:00 ps -elf
I am facing a problem in generating xgraph from .tr file. The error message is like this:
Error in file `voip.tr' at line 610:
Unknown line type
Problems found with input data.
The format of .tr file is like this:
+ 1 0 1 sctp 56 -------I 0 0.0 3.0 1 -1 2 65535 65535
- 1 0 1 sctp 56 -------I 0 0.0 3.0 1 -1 2 65535 65535
r 1.01224 0 1 sctp 56 -------I 0 0.0 3.0 1 -1 2 65535 65535
+ 1.01224 1 3 sctp 56 -------I 0 0.0 3.0 1 -1 2 65535 65535
- 1.01224 1 3 sctp 56 -------I 0 0.0 3.0 1 -1 2 65535 65535
r 1.02448 1 3 sctp 56 -------I 0 0.0 3.0 1 -1 2 65535 65535
+ 1.02448 3 1 sctp 56 -------I 0 3.0 0.0 1 -1 3 65535 65535
- 1.02448 3 1 sctp 56 -------I 0 3.0 0.0 1 -1 3 65535 65535
r 1.03672 3 1 sctp 56 -------I 0 3.0 0.0 1 -1 3 65535 65535
+ 1.03672 1 0 sctp 56 -------I 0 3.0 0.0 1 -1 3 65535 65535
- 1.03672 1 0 sctp 56 -------I 0 3.0 0.0 1 -1 3 65535 65535
r 1.04896 1 0 sctp 56 -------I 0 3.0 0.0 1 -1 3 65535 65535
+ 1.04896 0 1 sctp 36 -------I 0 0.0 3.0 1 -1 4 65535 65535
- 1.04896 0 1 sctp 36 -------I 0 0.0 3.0 1 -1 4 65535 65535
r 1.0604 0 1 sctp 36 -------I 0 0.0 3.0 1 -1 4 65535 65535
+ 1.0604 1 3 sctp 36 -------I 0 0.0 3.0 1 -1 4 65535 65535
I have used command like this in ubuntu in ns2.
xgraph voip.tr
So how can I generate graph from the trace file?
You cannot give your trace file as a direct input to Xgraph. you have to give file with only two lines like
1 5
5 89
8 98 here first row is x axis 2nd is y axis for example save this file as graph.tr
now you can execute using xgraph graph.tr here instead of using random values you have to use your QOS valuse such as number of packets received or sent like that..
xgraph can only be used with .xgr files. While executing the awk command add this (watch for the greater than symbol):
.... > anyname.xgr
Now you can use xgraph to plot, the command is:
xgraph anyname.xgr
I've the following problem. I'm running a MySQL server 5.1.37 on Ubuntu 9.10 x86 on Amazon. For data store I use EBS volume formatted for ext3.
From time to time the following problem occurs. MySQL start processing about queries 10~20 queries and processing of these takes more than 300sec (These SQL are using filesort). During that time no other transaction could be executed.
I've checked CPU Wait and here what is shows:
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
24 9 66 0 0 0| 0 76k| 258k 989k| 0 0 |5970 3014
23 1 75 0 0 1|4096B 28k| 229k 1536k| 0 0 |3249 2308
19 6 74 0 0 0|4096B 316k| 209k 609k| 0 0 |4943 2542
19 17 62 0 0 2|4096B 36k| 230k 718k| 0 0 |5482 2520
21 19 57 2 0 2| 16k 800k| 271k 860k| 0 0 |6549 2923
23 27 44 5 0 1| 480k 40k| 288k 979k| 0 0 |4140 2682
12 0 86 1 0 0| 256k 48k| 237k 771k| 0 0 |3404 2627
22 1 75 0 0 1|8192B 60k| 285k 908k| 0 0 |4009 2786
54 21 19 3 0 2|4096B 3384k| 287k 1556k| 0 0 |3962 2284
49 24 24 1 0 2|4096B 928k| 285k 2795k| 0 0 |3257 2005
61 19 17 2 0 2|8192B 36k| 215k 577k| 0 0 |3246 1922
40 49 8 0 0 3| 0 40k| 312k 905k| 0 0 |3282 1732
56 23 20 1 0 1|4096B 188k| 247k 897k| 0 0 |3102 2238
39 19 27 16 0 0|4096B 77M| 265k 819k| 0 0 |5147 3075
35 35 12 16 0 1|4096B 56M| 259k 1052k| 0 0 |4656 2739
36 27 8 28 0 1|4096B 59M| 259k 1139k| 0 0 |5549 2821
27 13 36 23 0 1|4096B 64M| 251k 1218k| 0 0 |4207 2540
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
26 4 13 57 0 1|4096B 66M| 275k 681k| 0 0 |5205 3291
22 6 27 43 0 1|4096B 52M| 237k 684k| 0 0 |4906 2602
14 3 24 58 0 0|4096B 46M| 278k 1058k| 0 0 |6448 3687
19 3 34 43 0 2| 32k 51M| 233k 685k| 0 0 |5006 2652
27 3 9 61 0 1|4096B 51M| 294k 800k| 0 0 |4428 2384
17 3 30 50 0 1|4096B 42M| 243k 699k| 0 0 |5334 2830
40 18 0 42 0 0| 0 89M| 247k 840k| 0 0 |4698 2977
31 18 11 39 0 2|4096B 42M| 238k 1269k| 0 0 |4270 2474
17 3 13 66 0 0|4096B 49M| 260k 773k| 0 0 |5153 3100
21 2 14 62 0 1|8192B 46M| 269k 948k| 0 0 |6762 3581
24 2 35 39 0 0|4096B 39M| 256k 777k| 0 0 |5313 2761
15 2 10 72 0 1|4096B 49M| 237k 797k| 0 0 |5312 3018
19 4 22 55 0 0|8192B 47M| 307k 1034k| 0 0 |5508 3278
41 3 15 40 0 1|8192B 47M| 293k 727k| 0 0 |5630 3303
16 2 26 54 0 1|4096B 56M| 282k 1750k| 0 0 |5016 2781
17 3 12 67 0 2|8192B 43M| 238k 824k| 0 0 |5751 3147
14 11 50 24 0 1|4096B 39M| 247k 1105k| 0 0 |4454 2389
41 3 20 35 0 1| 0 58M| 152k 481k| 0 0 |4009 2958
52 2 4 41 0 1|4096B 59M| 211k 621k| 0 0 |5449 2846
31 2 0 66 0 1| 0 52M| 255k 1476k| 0 0 |5167 2693
36 2 24 36 0 2| 12k 49M| 311k 888k| 0 0 |4537 2563
47 7 2 43 0 2|4096B 50M| 231k 750k| 0 0 |4083 2165
40 4 6 50 0 0|4096B 86M| 211k 819k| 0 0 |4768 2875
29 5 2 65 0 0| 0 79M| 180k 580k| 0 0 |4271 4461
40 3 0 57 0 0|4096B 58M| 238k 1489k| 0 0 |4366 4480
27 8 26 38 0 1|4096B 33M| 301k 984k| 0 0 |4439 2838
11 2 9 78 0 1|4096B 24M| 230k 646k| 0 0 |4894 4504
10 3 14 72 0 0|4096B 21M| 183k 549k| 0 0 |4066 3952
14 3 27 57 0 0| 0 64M| 147k 339k| 0 0 |3479 2860
10 2 19 69 0 0|4096B 51M| 112k 452k| 0 0 |2847 2300
9 4 18 69 0 0|4096B 37M| 131k 443k| 0 0 |2923 2004
4 2 49 45 0 0|4096B 31M| 97k 230k| 0 0 |2163 1545
1 2 73 24 0 0| 0 33M| 49k 130k| 0 0 |1425 824
1 0 71 28 0 0| 0 26M| 36k 86k| 0 0 |1426 910
0 0 55 45 0 0| 0 32M| 32k 148k| 0 0 |1334 695
4 0 64 32 0 0| 0 39M| 14k 39k| 0 0 |1262 406
0 2 38 60 0 0| 0 44M| 13k 44k| 0 0 |1136 382
1 1 82 16 0 0| 0 47M| 25k 70k| 0 0 |1228 584
1 3 69 27 0 0|4096B 46M| 23k 60k| 0 0 |1576 599
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
3 1 70 27 0 0|4096B 43M| 22k 54k| 0 0 |1065 574
1 1 33 65 0 0| 0 46M|6124B 17k| 0 0 |1190 345
1 1 49 50 0 0| 0 47M| 11k 22k| 0 0 |1258 444
2 11 23 64 0 0| 56k 58M|9749B 47k| 0 0 |1143 379
1 1 64 34 0 0| 0 51M| 198B 5914B| 0 0 |1048 234
0 1 63 36 0 0| 0 58M| 662B 1278B| 0 0 | 976 454
1 0 81 18 0 0| 0 50M| 426B 6022B| 0 0 |1304 600
0 1 70 29 0 0| 0 43M| 132B 1868B| 0 0 |1150 210
1 1 79 19 0 0| 0 51M| 198B 5914B| 0 0 | 986 246
1 2 30 66 0 0| 0 54M| 246B 420B| 0 0 |1150 288
1 0 49 50 0 0| 0 55M| 659B 6752B| 0 0 |1038 280
1 2 37 60 0 0| 0 47M| 66B 354B| 0 0 |1191 227
0 0 80 19 0 0| 0 43M| 561B 6044B| 0 0 |1129 256
5 13 44 38 0 0| 0 49M|1558B 19k| 0 0 |1225 243
3 6 48 42 0 0| 0 52M| 705B 6022B| 0 0 | 948 327
What could cause such a behavior? Are there any techniques to avoid this?
You're showing a high amount of IO_WAIT status on the CPU (65%). It's possible that you're just pulling too much out of the disks. Try running iostat and seeing what the disk activity is like (namely transactions per second).
However, you mention 10 to 20 queries. Are these queries doing any writing at all? Are they using a transaction? If the answer to either is yes, then you're locking because of the transaction lock in MySQL. If that's the case, your problem is that you need to either figure a way to remove the transaction, or make the queries much more efficient.
A good test would be to create another database on the server. Then run your queries and try to query against the different database. If it works, it's due to transaction locks. If it doesn't, it's likely the disk or some other leak from the VM...
The biggest suspect here is the performance of the EBS volumes, the CPUs may be waiting for I/Os to complete. The next question is what is causing the I/O requests.
This question might be better answered on ServerFault.
http://www.mysqlperformanceblog.com/2011/02/21/death-match-ebs-versus-ssd-price-performance-and-qos/
The IO performance of EBS is poor (I recently benchmarked EBS on a Small instance as being half as fast as my laptop's hard drive). However, you can improve it significantly by striping multiple EBS volumes into a software RAID configuration.
http://alestic.com/2009/06/ec2-ebs-raid
EBS comes with lot of its own limitations, if you are running your instance in the US Region, its better you switch to optimized EBS to make the IO faster. Even I was managing a self managed Mysql but later switched to RDS, which gives a lot better performance then EBS.