Ok, I think I know how to break it, and how to fix it.
Looks like one way to make famd do some work is to open Konquerer to a
location with many directories. I created a fake directory with 1100
subdirectories, opened it with Konquereror, and then got:
lsof -c famd | wc -l
1038
(famd seems to limit out at 1038, not sure why, but at least it is over
the 1024 default open files limit).
Sure enough, an attempt to login a new user failed with the "too many
open files" error in syslog.
In /etc/security/limits.conf (Mandrake 10.1 location), added this line:
* hard nofile 2048
restarted xinetd (to freshen famd), and now, doing the same test, a new
user could login even with the open file count for famd up at 1038.
Hope that helps for anyone facing a similar issue.
Marc
Marc DeTrano wrote:
I think the "unlimited" in that case only refers to the user's
processes. "ulimit -a " will give more detail ('open files' is the
field I think is most interesting here). I also setup Mandrake with
the "standard" security level.
And of course, there is the trusty lsof + wc
lsof -c famd | wc -l
398
In fact, looking at the lsof output for famd does show a lot of files
opened (clearly for various fam clients), but just one userid (that
changes).
Perhaps its time for some more experimentation.
Marc
Joe Baker wrote:
Marc DeTrano wrote:
If I understand this right, the file-max is a limit for all file
handles on the system. I don't think I am reaching that limit:
At this moment:
cat /proc/sys/fs/file-nr
33360 0 309816
(I take that to mean I am using about 1/10th the number of possible
open file handles).
I suspect that the ulimit setting of 1024 open files, for a user,
may be the limiting factor here (just from googling around a bit).
If I see this problem recur I may bump that up to 2048 in limits.conf.
I am not sure exactly how famd is supposed to work here. It looks
like famd, run via xinet, will run as the logged in user (when they
launch Konqueror, for instance). If another user launches
Konquerer, I see famd's user change to that user in the process
list--I guess it is still keeping all the files open (for all other
fam clients as well), and that may be how it is reaching the 1024
limit. (maybe?) Since the user is "changing" I would have to up the
limits across the board.
Thanks for your help.
Marc
When I type "ulimit", it replies "unlimited" for my configuration.
I'm running Mandrake 10.1 on the "Standard" security level rather
than the "high" level. I'm sure that this has implications that are
relevant here.
-Joe Baker
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net