Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.x: php-fpm consumes a lot of CPU when running mkfs.ext4 on low powered system #558

Open
jjakob opened this issue Jan 7, 2020 · 4 comments
Open
Labels
5.x

Comments

@jjakob
Copy link

@jjakob jjakob commented Jan 7, 2020

Description of issue/question

The system is a Gnubee PC2 with MT7621 SoC (4-core 900MHz mipsel).
When creating a filesystem from the Web GUI filesystems tab, the creation takes ~20min to complete due to very high CPU load >6 caused by php-fpm:

top - 19:19:15 up 16:48,  4 users,  load average: 6.14, 5.27, 3.34
Tasks: 129 total,   5 running, 124 sleeping,   0 stopped,   0 zombie
%Cpu(s): 37.2 us, 46.3 sy,  0.0 ni,  4.5 id,  4.1 wa,  0.0 hi,  7.8 si,  0.0 st
MiB Mem :    498.6 total,     21.0 free,     84.2 used,    393.4 buff/cache
MiB Swap:   1024.0 total,   1006.7 free,     17.2 used.    389.9 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                               
 3437 root      20   0       0      0      0 R  75.9   0.0   4:16.23 kworker/u8:0+flush-8:16                                                                                                               
21280 root      20   0    6864   5004   1844 R  56.9   1.0   3:08.27 mkfs.ext4                                                                                                                             
21383 openmed+  20   0  196320  12724   8412 S  28.4   2.5   1:22.02 php-fpm7.3                                                                                                                            
20650 openmed+  20   0  196320  12772   8452 S  28.1   2.5   1:33.59 php-fpm7.3                                                                                                                            
19571 openmed+  20   0  196320  12756   8448 R  27.2   2.5   1:40.27 php-fpm7.3                                                                                                                            
18623 openmed+  20   0  196324  12876   8524 S  26.9   2.5   1:47.46 php-fpm7.3                                                                                                                            
    9 root      20   0       0      0      0 R  19.4   0.0   1:01.45 ksoftirqd/0                                                                                                                           
  315 root      20   0       0      0      0 S  19.1   0.0   1:56.32 kswapd0                                                                                                                               
 1925 root      20   0   14028   7912   1376 S   8.1   1.5  58:16.89 tmux: server                                                                                                                          
29158 root      20   0   70088  11628   4596 S   7.5   2.3   0:00.24 omv-engined                                                                                                                           
   20 root      20   0       0      0      0 S   3.4   0.0   0:17.02 ksoftirqd/2                                                                                                                           
20683 root      20   0    6308   2456   1852 R   3.1   0.5   0:50.88 top                                                                                                                                   
  978 root       0 -20       0      0      0 I   2.8   0.0   0:17.70 kworker/0:2H-kblockd             

Steps to reproduce issue

As above, create ext4 filesystem on a SATA drive on a low-powered mipsel system.

Versions report

OS Debian GNU/Linux 10 (buster)
openmediavault Release: 5.2.2-1

@ryecoaaron

This comment has been minimized.

Copy link
Contributor

@ryecoaaron ryecoaaron commented Jan 7, 2020

This is the same reason omv-extras stopped supporting armel - they are too underpowered. The way the web interface polls the command line status from a temporary file is cpu intensive. You could close you window and it would finish though.

@jjakob

This comment has been minimized.

Copy link
Author

@jjakob jjakob commented Jan 7, 2020

I closed the status window but there was no change. Do I need to log out?
I was thinking there was a way to lower the polling frequency or something to that effect. I can live without the GUI for filesystems and just create them on the cli when needed.

@ryecoaaron

This comment has been minimized.

Copy link
Contributor

@ryecoaaron ryecoaaron commented Jan 7, 2020

Maybe engined does keep polling the status window. And the frequency is as fast as possible as far as I know with no way to change.

@votdev votdev added the 5.x label Jan 7, 2020
@votdev

This comment has been minimized.

Copy link
Collaborator

@votdev votdev commented Jan 7, 2020

I don't think that we can do anything here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.