Author Topic: Unexpected use of Ram and I/O  (Read 2913 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Unexpected use of Ram and I/O
« on: February 27, 2022, 02:20:43 AM »


Server Configuration:

CPU Model: AMD EPYC 7282 16-Core Processor
CPU Details: 6 Core (2795 MHz)
Distro Name: CentOS Stream release 8
Kernel Version: 4.18.0-365.el8.x86_64
Apache version: Apache/2.4.52
PHP version: 7.4.27 Forced PHP-FPM: 7.4
MySQL version: 10.7.3-MariaDB
FTP version: 1.0.49
Web Servers: nginx-apache
SSD : 400 GB
Ram: 16 GB

i already used cpanel, plesk, directadmin, and many more

Now i booked new server along with CWP Pro and i found it very interesting and getting many features at affordable price

but every thing is waste when your website goes down again n again

I was never facing this type issue with cpanel,plesk and other but this time it's a headace for me

please anyone here who can help me into this

Thank you so much


« Last Edit: February 27, 2022, 02:28:56 AM by addgab »

Offline
*****
Re: Unexpected use of Ram and I/O
« Reply #1 on: February 27, 2022, 02:48:49 AM »
Hi what is your DISK write speed ?

Offline
*
Re: Unexpected use of Ram and I/O
« Reply #2 on: February 27, 2022, 03:45:19 AM »
I run this command:  dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync

i hope it will help you to understand

[root@my ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.32158 s, 170 MB/s
[root@my ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.93834 s, 181 MB/s
[root@my ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.02479 s, 178 MB/s
[root@my ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.95614 s, 180 MB/s
[root@my ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.01341 s, 179 MB/s
[root@my ~]#

Offline
****
Re: Unexpected use of Ram and I/O
« Reply #3 on: February 27, 2022, 06:06:07 AM »
Please post the output from " top " and " iotop "  (May need to be installed via yum)
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Unexpected use of Ram and I/O
« Reply #4 on: February 27, 2022, 08:38:31 AM »
Top Result,

top Stats (live load)
top - 14:06:44 up 22:55,  0 users,  load average: 0.09, 0.48, 0.57
Tasks: 173 total,   1 running, 172 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  15826.9 total,   8667.2 free,   5487.7 used,   1671.9 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.   9829.8 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  93590 root      20   0   62352   4052   3484 R   6.7   0.0   0:00.01 top -n1+
      1 root      20   0  238148  10928   8024 S   0.0   0.1   0:17.97 /usr/li+
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.33 [kthrea+
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [rcu_gp]
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [rcu_pa+
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kworke+
      9 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [mm_per+
     10 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [rcu_ta+
     11 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [rcu_ta+
     12 root      20   0       0      0      0 S   0.0   0.0   0:01.75 [ksofti+
     13 root      20   0       0      0      0 I   0.0   0.0   1:14.69 [rcu_sc+
     14 root      rt   0       0      0      0 S   0.0   0.0   0:00.09 [migrat+
     15 root      rt   0       0      0      0 S   0.0   0.0   0:00.23 [watchd+
     16 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [cpuhp/+
     17 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [cpuhp/+
     18 root      rt   0       0      0      0 S   0.0   0.0   0:00.26 [watchd+
     19 root      rt   0       0      0      0 S   0.0   0.0   0:00.27 [migrat+
     20 root      20   0       0      0      0 S   0.0   0.0   0:02.62 [ksofti+
     22 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kworke+
     23 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [cpuhp/+
     24 root      rt   0       0      0      0 S   0.0   0.0   0:00.19 [watchd+
     25 root      rt   0       0      0      0 S   0.0   0.0   0:00.38 [migrat+
     26 root      20   0       0      0      0 S   0.0   0.0   0:03.02 [ksofti+
     28 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kworke+
     29 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [cpuhp/+
     30 root      rt   0       0      0      0 S   0.0   0.0   0:00.26 [watchd+
     31 root      rt   0       0      0      0 S   0.0   0.0   0:00.12 [migrat+
     32 root      20   0       0      0      0 S   0.0   0.0   0:01.82 [ksofti+
     34 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kworke+
     35 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [cpuhp/+
     36 root      rt   0       0      0      0 S   0.0   0.0   0:00.26 [watchd+
     37 root      rt   0       0      0      0 S   0.0   0.0   0:00.31 [migrat+
     38 root      20   0       0      0      0 S   0.0   0.0   0:01.51 [ksofti+
     40 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kworke+
     41 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [cpuhp/+
     42 root      rt   0       0      0      0 S   0.0   0.0   0:00.27 [watchd+
     43 root      rt   0       0      0      0 S   0.0   0.0   0:00.39 [migrat+
     44 root      20   0       0      0      0 S   0.0   0.0   0:01.07 [ksofti+
     46 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kworke+
     53 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [kdevtm+
     54 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [netns]
     55 root      20   0       0      0      0 S   0.0   0.0   0:00.06 [kaudit+
     57 root      20   0       0      0      0 S   0.0   0.0   0:00.27 [khungt+
     58 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [oom_re+
     59 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [writeb+
     60 root      20   0       0      0      0 S   0.0   0.0   0:05.52 [kcompa+
     61 root      25   5       0      0      0 S   0.0   0.0   0:00.00 [ksmd]
     62 root      39  19       0      0      0 S   0.0   0.0   2:19.92 [khugep+
     63 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [crypto]
     64 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kinteg+
     65 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kblock+
     66 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [blkcg_+
     67 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [tpm_de+
     68 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [md]
     69 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [edac-p+
     70 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 [watchd+
     72 root       0 -20       0      0      0 I   0.0   0.0   0:00.67 [kworke+
    114 root      20   0       0      0      0 S   0.0   0.0   0:25.29 [kswapd+
    216 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kthrot+
    217 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [acpi_t+
    218 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kmpath+
    219 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kaluad]
    221 root       0 -20       0      0      0 I   0.0   0.0   0:00.86 [kworke+
    222 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [ipv6_a+
    223 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [kstrp]
    303 root       0 -20       0      0      0 I   0.0   0.0   0:01.33 [kworke+
    309 root       0 -20       0      0      0 I   0.0   0.0   0:00.66 [kworke+
    336 root       0 -20       0      0      0 I   0.0   0.0   0:01.06 [kworke+
    339 root       0 -20       0      0      0 I   0.0   0.0   0:01.00 [kworke+
    482 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [scsi_e+
    483 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [scsi_t+
    486 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [ata_sf+
    488 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [scsi_e+
    489 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [scsi_t+
    490 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [scsi_e+
    491 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [scsi_t+
    524 root      20   0       0      0      0 S   0.0   0.0   0:10.19 [jbd2/s+
    525 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [ext4-r+
    616 root      20   0  188448  93028  89316 S   0.0   0.6   0:49.49 /usr/li+
    653 root      20   0  115800   9704   7084 S   0.0   0.1   0:01.23 /usr/li+
    654 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [jbd2/s+
    655 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [ext4-r+
    694 root      16  -4   65796   2540   1888 S   0.0   0.0   0:00.44 /sbin/a+
    733 root      20   0       0      0      0 S   0.0   0.0   0:00.00 [hwmon0]
    750 root      20   0  124964   5404   4768 S   0.0   0.0   0:04.50 /usr/sb+
    751 root      20   0  192688  11040   9328 S   0.0   0.1   0:02.32 /usr/sb+
    754 polkitd   20   0 1900440  21856  15560 S   0.0   0.1   0:03.08 /usr/li+
    755 dbus      20   0   76744   5396   4620 S   0.0   0.0   0:06.21 /usr/bi+
    756 root      20   0  391692  18392  15952 S   0.0   0.1   0:12.76 /usr/sb+
    762 chrony    20   0  151004   4696   3980 S   0.0   0.0   0:00.90 /usr/sb+
    784 root      20   0  222224 109100   8556 S   0.0   0.7   0:15.66 /usr/bi+
    785 root      20   0  470988  37364  29196 S   0.0   0.2   0:07.15 php-fpm+
    793 root      20   0  455564  51760  44276 S   0.0   0.3   0:05.99 php-fpm+
    797 root      20   0  133760  22196  16724 S   0.0   0.1   0:09.08 php-fpm+
    799 cbpolic+  20   0  123272  36312   5004 S   0.0   0.2   0:02.85 /usr/bi+
    800 root      20   0  133504  20464  15016 S   0.0   0.1   0:09.14 php-fpm+
    801 root      20   0   94368   7128   6216 S   0.0   0.0   0:00.01 /usr/sb+
    803 root      20   0  575968  31740  15164 S   0.0   0.2   4:48.15 /usr/li+
    808 root      20   0  469132  39108  31068 S   0.0   0.2   0:22.35 php-fpm+
    814 root      20   0  201820  12968  10084 S   0.0   0.1   0:01.57 /usr/li+
    834 root      20   0   82328   4992   3888 S   0.0   0.0   0:00.05 /usr/sb+
    841 root      20   0  202860  37892  36372 S   0.0   0.2   0:20.38 /usr/li+
    845 mysql     20   0 4109060   1.5g  25176 S   0.0   9.9  29:21.82 /usr/sb+
    852 root      20   0   92492   7524   6564 S   0.0   0.0   0:01.02 /usr/li+
    859 root      20   0   34680   3288   2384 S   0.0   0.0   0:00.48 /usr/sb+
    861 root      20   0   43876   2552   2344 S   0.0   0.0   0:00.02 /usr/sb+
    891 root      20   0  298440  38164  36368 S   0.0   0.2   0:19.82 /usr/sb+
    892 root      20   0  125296   6144   5080 S   0.0   0.0   0:18.54 /usr/bi+
    924 root      20   0   13660   1668   1556 S   0.0   0.0   0:00.00 /sbin/a+
    977 named     20   0  770332 308992   6908 S   0.0   1.9   0:54.06 /usr/sb+
    988 root      20   0   44668   5308   4676 S   0.0   0.0   0:04.29 /usr/sb+
   1075 amavis    20   0 1586812   1.2g  11248 S   0.0   8.1   0:19.40 /usr/sb+
   1112 opendkim  20   0   97144   1572      0 S   0.0   0.0   0:00.00 /usr/sb+
   1113 opendkim  20   0  263388   9768   5792 S   0.0   0.1   0:03.21 /usr/sb+
   1162 root      20   0  123364   5424   4356 S   0.0   0.0   0:01.67 /usr/li+
   1175 dovecot   20   0   22480   4352   3824 S   0.0   0.0   0:01.21 dovecot+
   1176 root      20   0   22616   4388   3732 S   0.0   0.0   0:00.99 dovecot+
   1178 root      20   0   48528   9724   4580 S   0.0   0.1   0:03.51 dovecot+
   1231 root      20   0  125136  67944   4952 S   0.0   0.4   0:04.04 nginx: +
   1727 root      20   0  222224 102268   1652 S   0.0   0.6   0:00.82 spamd c+
   1728 root      20   0  222224 102016   1396 S   0.0   0.6   0:00.78 spamd c+
   1808 dovecot   20   0   28744   5720   4816 S   0.0   0.0   0:02.58 dovecot+
   2128 amavis    20   0  315840 152856   8168 S   0.0   0.9   0:03.57 /usr/sb+
   2130 amavis    20   0  318168 152804   7236 S   0.0   0.9   0:00.34 /usr/sb+
   2131 amavis    20   0  317352 148828   4036 S   0.0   0.9   0:00.00 /usr/sb+
   2482 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 [dio/sd+
  28596 cbpolic+  20   0  138452  38780   6344 S   0.0   0.2   0:00.15 /usr/bi+
  31397 root      20   0   36608   8776   1468 S   0.0   0.1   0:16.12 /usr/sb+
  32499 cbpolic+  20   0  138576  39412   6924 S   0.0   0.2   0:00.39 /usr/bi+
  36501 cbpolic+  20   0  138448  38820   6388 S   0.0   0.2   0:00.06 /usr/bi+
  36687 cbpolic+  20   0  138572  39012   6524 S   0.0   0.2   0:00.21 /usr/bi+
  47448 root      20   0   37656   8336   4200 S   0.0   0.1   0:00.03 cwpsrv:+
  48114 root      20   0  358732 186008  11328 S   0.0   1.1   0:09.81 /usr/lo+
  50356 root      20   0  100020  34264   5364 S   0.0   0.2   0:46.85 lfd - s+
  57430 root      20   0   69688  10372   6116 S   0.0   0.1   0:03.85 cwpsrv:+
  57431 root      20   0   69688  10372   6116 S   0.0   0.1   0:03.58 cwpsrv:+
  81228 postfix   20   0  148796  10140   8988 S   0.0   0.1   0:00.06 qmgr -l+
  82833 nobody    20   0  159292  66884   3768 S   0.0   0.4   0:00.00 nginx: +
  82834 nobody    20   0  159292  66736   3620 S   0.0   0.4   0:00.00 nginx: +
  82835 nobody    20   0  159292  66884   3768 S   0.0   0.4   0:00.00 nginx: +
  82836 nobody    20   0  159292  70324   7208 S   0.0   0.4   0:16.25 nginx: +
  82837 nobody    20   0  159292  69984   6868 S   0.0   0.4   0:00.66 nginx: +
  82838 nobody    20   0  159292  66884   3768 S   0.0   0.4   0:00.00 nginx: +
  82839 nobody    20   0  159292  66708   3592 S   0.0   0.4   0:00.12 nginx: +
  82850 nobody    20   0 2379244 225428   8916 S   0.0   1.4   0:09.99 /usr/lo+
  82851 nobody    20   0 2379244 224160   8916 S   0.0   1.4   0:12.84 /usr/lo+
  82876 nobody    20   0 2379244 226940   8916 S   0.0   1.4   0:13.08 /usr/lo+
  84116 root      20   0       0      0      0 I   0.0   0.0   0:00.31 [kworke+
  86456 postfix   20   0  148700  11112  10000 S   0.0   0.1   0:00.05 tlsmgr +
  86851 postfix   20   0  148668   9456   8368 S   0.0   0.1   0:00.03 anvil -+
  88238 root      20   0       0      0      0 I   0.0   0.0   0:00.26 [kworke+
  89015 postfix   20   0  148672   9508   8420 S   0.0   0.1   0:00.02 pickup +
  89345 root      20   0       0      0      0 I   0.0   0.0   0:00.17 [kworke+
  89416 root      20   0       0      0      0 I   0.0   0.0   0:00.29 [kworke+
  89928 root      20   0       0      0      0 I   0.0   0.0   0:00.37 [kworke+
  90493 root      20   0       0      0      0 I   0.0   0.0   0:00.29 [kworke+
  90583 root      20   0       0      0      0 I   0.0   0.0   0:00.07 [kworke+
  90595 root      20   0       0      0      0 I   0.0   0.0   0:00.00 [kworke+
  90596 root      20   0       0      0      0 I   0.0   0.0   0:00.66 [kworke+
  90963 root      20   0       0      0      0 I   0.0   0.0   0:00.05 [kworke+
  91475 dovenull  20   0   27168   6868   6048 S   0.0   0.0   0:00.00 dovecot+
  91476 web92j2x  20   0   32876   6712   5876 S   0.0   0.0   0:00.00 dovecot+
  91635 root      20   0       0      0      0 I   0.0   0.0   0:00.00 [kworke+
  91637 root      20   0       0      0      0 I   0.0   0.0   0:00.00 [kworke+
  91871 root      20   0  136256  17056   8912 S   0.0   0.1   0:02.65 php-fpm+
  91873 root      20   0  136256  17056   8912 S   0.0   0.1   0:02.69 php-fpm+
  92605 root      20   0  136256  16660   8520 S   0.0   0.1   0:01.22 php-fpm+
  92626 root      20   0       0      0      0 I   0.0   0.0   0:00.11 [kworke+
  92654 root      20   0       0      0      0 I   0.0   0.0   0:00.00 [kworke+
  92971 root      20   0       0      0      0 I   0.0   0.0   0:00.00 [kworke+
  92973 root      20   0       0      0      0 I   0.0   0.0   0:00.00 [kworke+
  93487 dovecot   20   0   51008   6352   5632 S   0.0   0.0   0:00.00 dovecot+
  93501 root      20   0   53408   7864   6888 S   0.0   0.0   0:00.02 dovecot+