Results 1 to 9 of 9

Thread: Fuser high CPU usage

  1. #1
    Join Date
    Oct 2007
    Beans
    157
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Fuser high CPU usage

    Hi, for some reason fuser is always running itself (seemingly randomly)

    Here it is in top (CPU usage is generally high):
    2749 root 20 0 7516 836 668 S 63 0.0 0:02.13 fuser

    I tried killing it with kill 9 and that didnot work

    Here's syslog entries showing fuser


    Oct 20 05:49:03 anger kernel: grsec: failed fork with errno ENOMEM by /bin/fuser[fuser:2749] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/find[find:2744] uid/euid:0/0 gid/egid:0/0
    Oct 20 05:49:03 anger kernel: last message repeated 4 times
    Oct 20 05:49:03 anger kernel: grsec: more alerts, logging disabled for 10 seconds

    Here's a search for fuser in cron

    root@anger:/etc# grep -r "fuser" *
    bash_completion.d/fuse:have fusermount &&
    bash_completion.d/fuse:_fusermount()
    bash_completion.d/fuse:complete -F _fusermount fusermount
    grep: blkid.tab: No such file or directory
    cron.d/php5:09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
    grep: fonts/conf.d/30-defoma.conf: No such file or directory
    root@anger:/etc#

    and

    this line apparantly is running it


    09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete

    what would happen if I turn that off?

    By the way, I have a few thousands of zombie processes running when fuser is running.

    Also is this amount of RAM usage normal for a server:
    root@anger:/etc/cron.d# free -m
    total used free shared buffers cached
    Mem: 15983 15704 278 0 274 12203
    -/+ buffers/cache: 3226 12756
    Swap: 510 0 510

    I'm only running a few srcds instances which shouldn't be RAM intensive.

    Thanks

  2. #2
    Join Date
    Sep 2008
    Beans
    3

    Re: Fuser high CPU usage

    We have the same problem. This is the content of /etc/cron.d/php5 on 11.10:

    Code:
    09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
    And this is the content on 11.04:

    Code:
    09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete
    Spot the difference?

    The 11.10 version runs fuser for each PHP session file, thus using all the CPU when there are hundreds of sessions.
    Last edited by grazer; October 20th, 2011 at 09:40 AM.

  3. #3
    Join Date
    Dec 2007
    Beans
    51

    Re: Fuser high CPU usage

    Looking at my own logs, I believe this is the cause of my computer to nearly hard crash three times in the past three days - black screen, apache process killed as well as my Minecraft process, though this last time ssh and mythbackend stayed up.

    Pouring through my syslog, this appears to be the culprit. I'm switching back to the 11.04 version to see if it fixes it.

    EDIT: specifically, my offending syslog lines were:

    Oct 23 16:39:01 alexandria CRON[29029]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/de
    v/null \; -delete)
    Oct 23 16:39:11 alexandria kernel: [153263.109183] fuser invoked oom-killer: gfp_mask=0x40d0, order=0, oom_adj=0, oom_score_adj=0
    Oct 23 16:39:11 alexandria kernel: [153263.109191] fuser cpuset=/ mems_allowed=0
    Oct 23 16:39:11 alexandria kernel: [153263.109196] Pid: 6005, comm: fuser Tainted: P 3.0.0-12-generic-pae #20-Ubuntu
    Oct 23 16:39:11 alexandria kernel: [153263.109199] Call Trace:
    Oct 23 16:39:11 alexandria kernel: [153263.109209] [<c10ead55>] dump_header.isra.7+0x85/0xc0
    Oct 23 16:39:11 alexandria kernel: [153263.109214] [<c10eafac>] oom_kill_process+0x5c/0x80
    Oct 23 16:39:11 alexandria kernel: [153263.109218] [<c10eb39f>] out_of_memory+0xbf/0x1d0
    Oct 23 16:39:11 alexandria kernel: [153263.109223] [<c10ef293>] __alloc_pages_nodemask+0x6c3/0x6e0
    Oct 23 16:39:11 alexandria kernel: [153263.109229] [<c1121c6b>] allocate_slab+0xbb/0xd0
    Oct 23 16:39:11 alexandria kernel: [153263.109232] [<c1121ca7>] new_slab+0x27/0x110
    Oct 23 16:39:11 alexandria kernel: [153263.109236] [<c1122674>] ? deactivate_slab+0x34/0x70
    Oct 23 16:39:11 alexandria kernel: [153263.109241] [<c1544e0d>] __slab_alloc.constprop.65+0xbf/0x191
    Oct 23 16:39:11 alexandria kernel: [153263.109245] [<c1541009>] ? copy_signal+0x2c/0x205
    Oct 23 16:39:11 alexandria kernel: [153263.109249] [<c1122b05>] kmem_cache_alloc+0x135/0x140
    Last edited by TrevorBradley; October 24th, 2011 at 01:09 AM.

  4. #4
    Join Date
    Jan 2010
    Beans
    27

    Re: Fuser high CPU usage

    Any further insights on this? One one of our servers, fuser regularly takes 9999% of CPU and we quickly ramp up to thousands of zombie processes. At the same time, our jvm runs out of memory (at 16GB). That was not the case on Ubuntu 10.10 we were running before (at 8GB RAM, same setup, same tasks).

    People seem to take out the fuser part: http://ubuntuforums.org/showthread.php?t=1862472
    Last edited by kongo09; November 4th, 2011 at 12:53 PM.

  5. #5
    Join Date
    Jul 2011
    Beans
    1

    Re: Fuser high CPU usage

    Quote Originally Posted by grazer View Post
    We have the same problem. This is the content of /etc/cron.d/php5 on 11.10:

    Code:
    09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
    And this is the content on 11.04:

    Code:
    09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete
    Spot the difference?

    The 11.10 version runs fuser for each PHP session file, thus using all the CPU when there are hundreds of sessions.
    Did anyone actually try changing this CRON command back so it doesn't run fuser command?

  6. #6
    Join Date
    Dec 2007
    Beans
    51

    Re: Fuser high CPU usage

    I did remove fuser from cron (using the suggestion above) soon after I last posted and waited a few days to see if it was effective... the problem vanished completely.

  7. #7
    Join Date
    Nov 2006
    Beans
    24

    Re: Fuser high CPU usage

    Quote Originally Posted by TrevorBradley View Post
    I did remove fuser from cron (using the suggestion above) soon after I last posted and waited a few days to see if it was effective... the problem vanished completely.
    Same thing here. There is also a bug report for this:

    https://bugs.launchpad.net/ubuntu/+s...p5/+bug/876387

    More people should put their voice there so it gets fixed.

  8. #8
    Join Date
    May 2013
    Beans
    1

    Re: Fuser high CPU usage

    Saved my life too.

    Quote Originally Posted by greggatghc View Post
    Same thing here. There is also a bug report for this:

    https://bugs.launchpad.net/ubuntu/+s...p5/+bug/876387

    More people should put their voice there so it gets fixed.

  9. #9
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Fuser high CPU usage

    Old thread closed.
    Ubuntu 16.04 Desktop Guide - Ubuntu 18.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •