/usr/bin/du

  • Hallo zusammen,


    seitdem wir ein paar Ordner mit extrem vielen PHP Dateien (mehrere Millionen) auf dem Server (Ubuntu 12.04 , latest i-mscp) haben wir regelmäßig den Prozess /usr/bin/du mit hoher Last laufen.
    Was genau macht der und wir der benötigt?


    Vielen Dank.




    Grüße,


    John

  • Hello ;


    This is surely due to the i-MSCP quota script which is run every 30 minutes. You could edit the related cron job as follow to mitigate the CPU load:


    In the /etc/cron.d/imscp file, change the following line:


    Code
    1. 0,30 * * * * root /var/www/imscp/engine/quota/imscp-dsk-quota &>/var/log/imscp/imscp-dsk-quota.log


    by something like


    Code
    1. 0,30 * * * * root ionice -c2 -n7 nice -n19 /var/www/imscp/engine/quota/imscp-dsk-quota &>/var/log/imscp/imscp-dsk-quota.log


    You could also change the timedate field of this cron task to run it less often.


    See:

    • man ionice
    • man nice

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206