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.
Related
I'm trying to fine-tune tesseract 4.1.1 on my own specific data according to this guide. I want it to become able to detect and recognize text in boxes like that:
I have generated a number of images like that and corresponding to them .box files containing bounding boxes with text. To reproduce my issue here i'm going to show my pipeline using only one image. Here is the .box file for the image above:
0 1804 1659 1858 1813 0
5 1804 1659 1858 1813 0
9 1804 1659 1858 1813 0
9 1266 715 1334 1169 0
7 1266 715 1334 1169 0
8 1266 715 1334 1169 0
3 1266 715 1334 1169 0
6 1266 715 1334 1169 0
8 1266 715 1334 1169 0
0 1266 715 1334 1169 0
5 1266 715 1334 1169 0
3 1266 715 1334 1169 0
2 876 303 930 607 0
7 876 303 930 607 0
2 876 303 930 607 0
8 876 303 930 607 0
2 876 303 930 607 0
2 876 303 930 607 0
8 1671 120 1725 224 0
0 1671 120 1725 224 0
5 300 1278 354 1482 0
2 300 1278 354 1482 0
3 300 1278 354 1482 0
7 300 1278 354 1482 0
7 917 1451 975 1605 0
6 917 1451 975 1605 0
4 917 1451 975 1605 0
1 1058 1310 1132 1716 0
9 1058 1310 1132 1716 0
8 1058 1310 1132 1716 0
7 1058 1310 1132 1716 0
7 1058 1310 1132 1716 0
1 1058 1310 1132 1716 0
8 1058 1310 1132 1716 0
6 1058 1310 1132 1716 0
3 998 76 1070 382 0
4 998 76 1070 382 0
4 998 76 1070 382 0
8 998 76 1070 382 0
3 998 76 1070 382 0
6 998 76 1070 382 0
3 722 548 776 652 0
2 722 548 776 652 0
7 1782 1332 1838 1586 0
7 1782 1332 1838 1586 0
2 1782 1332 1838 1586 0
6 1782 1332 1838 1586 0
2 1782 1332 1838 1586 0
1 714 140 768 244 0
2 714 140 768 244 0
0 220 500 278 754 0
5 220 500 278 754 0
5 220 500 278 754 0
6 220 500 278 754 0
6 220 500 278 754 0
8 1676 1052 1742 1406 0
4 1676 1052 1742 1406 0
5 1676 1052 1742 1406 0
9 1676 1052 1742 1406 0
1 1676 1052 1742 1406 0
2 1676 1052 1742 1406 0
4 1676 1052 1742 1406 0
5 357 161 419 317 0
1 357 161 419 317 0
4 357 161 419 317 0
9 1424 848 1480 952 0
8 1424 848 1480 952 0
0 438 324 498 478 0
6 438 324 498 478 0
9 438 324 498 478 0
8 1503 1246 1559 1700 0
1 1503 1246 1559 1700 0
8 1503 1246 1559 1700 0
5 1503 1246 1559 1700 0
3 1503 1246 1559 1700 0
0 1503 1246 1559 1700 0
5 1503 1246 1559 1700 0
5 1503 1246 1559 1700 0
4 1503 1246 1559 1700 0
8 1553 477 1609 581 0
4 1553 477 1609 581 0
3 527 258 581 512 0
7 527 258 581 512 0
7 527 258 581 512 0
9 527 258 581 512 0
1 527 258 581 512 0
6 1665 1592 1727 1748 0
8 1665 1592 1727 1748 0
3 1665 1592 1727 1748 0
5 595 1362 651 1766 0
9 595 1362 651 1766 0
3 595 1362 651 1766 0
9 595 1362 651 1766 0
4 595 1362 651 1766 0
3 595 1362 651 1766 0
3 595 1362 651 1766 0
1 595 1362 651 1766 0
I have also converted the image into .tiff format and placed it in the same directory with .box file. Lets say we have 87.tiff and 87.box inside the directory.
Next i generate 87.lstmf file using
tesseract 87.tiff 87 lstm.train
Next i extract model using
combine_tessdata -e /usr/share/tesseract-ocr/4.00/tessdata/rus.traineddata lstm_model/rus.lstm
Next i create train.txt file containing the single line: 87.lstmf
Finally, i create bash script train.sh
/usr/bin/lstmtraining \
--model_output output/fine_tuned \
--continue_from lstm_model/rus.lstm \
--traineddata /usr/share/tesseract-ocr/4.00/tessdata/rus.traineddata \
--train_listfile train.txt \
--eval_listfile train.txt \
--max_iterations 400\
--debug_level -1
And when i run it, i have the following logs:
$ bash train.sh
Loaded file lstm_model/rus.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Continuing from lstm_model/rus.lstm
Loaded 1/1 lines (1-1) of document 87.lstmf
Loaded 1/1 lines (1-1) of document 87.lstmf
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
Compute CTC targets failed!
The message "Compute CTC targets failed!" repeats infinitely until i interrupt the script.
What am i doing wrong? I'm also concerned about message "Loaded 1/1 lines (1-1)" since i have multiple bounding boxes on the image.
For lstm training on images you may need to have the .box files in the new lstm format (these can be generated by running tesseract with the lstmbox argument):
TrainingTesseract-4.00
so after each line of text mark it with a special line:
<tab> <left> <bottom> <right> <top> <page>
then run lstm.train .
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.
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.
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 have tried to show how many files are open via this command:
lsof | awk '{print $1" "$2}' | uniq -c | sort -n -r
and here is result:
717 mysqld 1762
188 httpd 5171
185 httpd 5145
184 httpd 5631
184 httpd 5488
184 httpd 5150
184 httpd 3824
184 httpd 3819
184 httpd 3811
184 httpd 3483
184 httpd 3255
184 httpd 3249
184 httpd 3236
184 httpd 3230
183 httpd 5655
183 httpd 5490
183 httpd 5489
183 httpd 5487
183 httpd 5465
183 httpd 5464
183 httpd 5149
183 httpd 4480
183 httpd 4479
183 httpd 4478
183 httpd 4477
183 httpd 4474
183 httpd 4473
183 httpd 4459
183 httpd 3490
183 httpd 3489
183 httpd 3488
183 httpd 3487
183 httpd 3484
183 httpd 3478
183 httpd 3326
183 httpd 3235
183 httpd 3234
183 httpd 3233
183 httpd 3231
183 httpd 3229
183 httpd 10551
183 httpd 10317
183 httpd 10316
183 httpd 10291
182 httpd 10602
182 httpd 10601
182 httpd 10281
174 httpd 5443
174 httpd 3319
174 httpd 10603
174 httpd 10596
174 httpd 10578
174 httpd 10577
174 httpd 10552
174 httpd 10531
173 httpd 10576
173 httpd 10378
173 httpd 10319
173 httpd 10318
171 httpd 3226
137 master 1985
118 dovecot 1854
74 newrelic- 1880
63 sshd 8631
62 auth 11282
57 fail2ban- 2107
56 auth 11283
49 qmgr 2007
49 pickup 31235
44 squid 2061
44 memcached 1002
41 sshd 1183
37 squid 2059
34 log 1857
27 vsftpd 1206
27 imap 7971
24 anvil 1855
22 config 11280
20 rsyslogd 869
20 init 1
19 udevd 363
19 crond 2042
15 unlinkd 2063
15 udevd 911
15 udevd 910
15 mysqld_sa 1246
15 lsof 11502
15 bash 8687
13 acpid 895
12 sort 11505
12 awk 11503
10 newrelic- 1879
10 lsof 11506
10 irqbalanc 884
9 uniq 11504
8 mingetty 2155
3 xenwatch 23
3 xenbus 24
3 sync_supe 56
3 netns 19
3 migration 9
3 migration 7
3 migration 5
3 migration 4
3 kthreadd 2
3 kswapd0 117
3 kstriped 292
3 ksoftirqd 8
3 ksoftirqd 6
3 ksoftirqd 3
3 ksoftirqd 10
3 ksnapd 296
3 kseriod 68
3 kjournald 318
3 khvcd 136
3 khelper 16
3 kblockd/3 63
3 kblockd/2 62
3 kblockd/1 61
3 kblockd/0 60
3 kauditd 570
3 flush-202 725
3 events/3 14
3 events/2 13
3 events/1 12
3 events/0 11
3 crypto/3 125
3 crypto/2 124
3 crypto/1 123
3 crypto/0 122
3 cpuset 15
3 bdi-defau 58
3 async/mgr 20
3 aio/3 121
3 aio/2 120
3 aio/1 119
3 aio/0 118
1 COMMAND PID
Folks, could you please tell me why Apache open so many files? I have disabled access_log directive at httpd.conf but it not helps me.
Thx
If you look at the actual results (lsof|grep httpd), you will see that each parent process has open handles to each module that is loaded, so your modules (e.g. mod_rewrite) will be in the open file list.
Each process will also have a handle to the error_log file, lib files required to run httpd or any modules, and at least one pipe per process for IPC.
If you are serving a lot of static files and you have a busy site, chances are you will see some of those files open too.
Really none of this should be much of an issue. And keep in mind, the more Server processes you have running, the more open files there will be since each parent process will open many of the same files (in particular the modules and log files).