Hi,
I'm running into a funny problem, this shows up in the logs:
Config maximum number of threads restricted to -1
141201 14:39:20 5315 XrdScheduler: Thread limit has been reached!
There's a funny thing with max num of processes:
[1509] root@cabinet-10-10-11 /var/log/xrootd# ps aux|grep xroot
xrootd 5299 0.0 0.1 240240 2440 ? Sl 14:39 0:00 xrootd -I v4 -c /opt/klus.cfg -b -l /var/log/xrootd/xrootd.log -s /var/run/xrootd/xrootd.pid
xrootd 5315 0.0 0.1 105464 2500 ? Sl 14:39 0:00 cmsd -I v4 -c /opt/klus.cfg -b -l /var/log/xrootd/cmsd.log -s /var/run/xrootd/cmsd.pid
[1509] root@cabinet-10-10-11 /var/log/xrootd# cat /proc/5299/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 10485760 unlimited bytes
Max core file size unlimited unlimited bytes
Max resident set unlimited unlimited bytes
Max processes unlimited unlimited processes ### <------ this
Max open files 4096 4096 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 14866 14866 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
So it seems that unlimited gets turned into -1 by xrootd. After that the server does not connect to the redirector.
I was a bit annoyed by this so I set the nproc limit to 8192 in security/limits. This is apparently honored in shell but somehow does not get propagated to xrootd.
[1509] root@cabinet-10-10-11 /var/log/xrootd# sudo -u xrootd bash -c "ulimit -a"
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 14866
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 8192
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Any ideas what else to check / change? This is the code that does this check:
https://github.com/xrootd/xrootd/blob/master/src/Xrd/XrdConfig.cc#L855
Best,
Matevz
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
|