fam
[Top] [All Lists]

fam limit on number of monitor requests.

To: fam@xxxxxxxxxxx
Subject: fam limit on number of monitor requests.
From: John McMonagle <johnm@xxxxxxxxxxx>
Date: Tue, 05 Jul 2005 14:30:06 -0500
Organization: Advocap Inc
Sender: fam-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1
Am running fam in a  kde ltsp environment using debian sarge.
After about 10 people log in sessions start to stall.
Was getting errors in syslog from famd saying it is out of file handles.

Jun 27 13:28:52 oshkosh famd[5361]: failed to accept new client: Too many open files

Jun 27 13:29:00 oshkosh famd[5361]: localclient socket(PF_UNIX, SOCK_STREAM, 0): Too many open files

restarting famd makes things resume.

I added to the startup of famd

ulimit -n 8196

This stops the errors to syslog but still hangs when fam has a bit over 1024 files opened.
I check with lsof.

To cover the inevitable question ;-)
/proc/sys/fs/file-max  2040670
/proc/sys/fs/file-nr     14220   0       2040670

From running the test program it seems to open another file for each directory or file,

Tried rebuilding fam changing in DNotify.h

  enum { QUEUESIZE = 1024 };
to
  enum { QUEUESIZE = 8196 };
Didn't help :-(

At the moment running without famd but would prefer to run it if possible.

Personally I consider this to be a catastrophic bug  :(

My largest system could have 50 users logged in with kde so I'm guessing could get by with 4096 and 8196 would really safe.

Next I'm planning on removing dnotify support and see what happens.

Any thing else to try to fix this?

John

Attachment: johnm.vcf
Description: Vcard

<Prev in Thread] Current Thread [Next in Thread>
  • fam limit on number of monitor requests., John McMonagle <=