LISTSERV mailing list manager LISTSERV 16.5

Help for XROOTD-DEV Archives


XROOTD-DEV Archives

XROOTD-DEV Archives


XROOTD-DEV@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

XROOTD-DEV Home

XROOTD-DEV Home

XROOTD-DEV  November 2015

XROOTD-DEV November 2015

Subject:

Re: [xrootd] "UNLIMITED" nproc limit is handled incorrectly (#288)

From:

"Yang, Wei" <[log in to unmask]>

Reply-To:

xrootd developers' list for Scalla/xrootd repository and related issues <[log in to unmask]>

Date:

Fri, 6 Nov 2015 07:53:21 +0000

Content-Type:

multipart/mixed

Parts/Attachments:

Parts/Attachments

text/plain (1 lines) , winmail.dat (1 lines)

I think you can do something like this:

$ cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          soft    nproc     1024
root       soft    nproc     unlimited


You can put a reasonably large # there but perhaps not “unlimited” for non-root. By default, each thread use 2-10MB stack space (see “ulimit -s”) so if you have 1024 threads, that is 2-10GB of RAM.

regards,
Wei Yang  |  [log in to unmask]<mailto:[log in to unmask]>  |  650-926-3338(O)



On Nov 5, 2015, at 10:38 PM, Andrew Melo <[log in to unmask]<mailto:[log in to unmask]>> wrote:


Whoops, I wiffed on the inheritance of ulimits. I thought processes inherited ulimits from their parents, and /etc/security/limits.conf was just defaults for new sessions. I thought setting ulimit as root then changing users would've propagated the limit. Changing limits.conf is the other option instead of having to build a whole new machine.

In either case, it doesn't change the behavior of the server. I just did the following (dashes separate different terminals)

[root@se1 xrootd]# ( ulimit -u 2048 ; /etc/init.d/xrootd restart test )
Shutting down xrootd (xrootd, test):                       [  OK  ]
Starting xrootd (xrootd, test):                            [  OK  ]
---
[meloam@vmps11] $ xrdcp -f -v -d 1 root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts .
Set debug level 1
151105 23:58:27 001 Xrd: main: (C) 2004-2011 by the XRootD collaboration. Version: v3.1.0
151105 23:58:27 001 Xrd: Create: (C) 2004-2010 by the Xrootd group. XrdClient $Revision$ - Xrootd version: v3.1.0
151105 23:58:27 001 Xrd: ShowUrls: The converted URLs count is 1
151105 23:58:27 001 Xrd: ShowUrls: URL n.1: root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts.
151105 23:58:27 001 Xrd: ShowUrls: The converted URLs count is 1
151105 23:58:27 001 Xrd: ShowUrls: URL n.1: root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts.
151105 23:58:27 001 Xrd: Open: Access to server granted.
151105 23:58:27 001 Xrd: Open: Opening the remote file /home/meloam/xrootd-test/hosts
151105 23:58:27 001 Xrd: Open: File open in progress.
151105 23:58:27 001 Xrd: main: root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts --> .//hosts
[xrootd] Total 0.00 MB  |====================| 100.00 % [inf MB/s]
[xrdcp] #################################################################
[xrdcp] # Source Name              : root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts
[xrdcp] # Destination Name         : ./hosts
[xrdcp] # Data Copied [bytes]      : 192
[xrdcp] # Realtime [s]             : 0.001000
[xrdcp] # Eff.Copy. Rate[MB/s]     : 0.192000
[xrdcp] #################################################################
Low level caching info:
 StallsRate=0.5
 StallsCount=1
 ReadsCounter=2
 BytesUsefulness=1
 BytesSubmitted=192 BytesHit=192

XrdClient counters:
 ReadBytes:                 192
 WrittenBytes:              0
 WriteRequests:             0
 ReadRequests:              1
 ReadMisses:                0
 ReadHits:                  1
 ReadMissRate:              0.000000
 ReadVRequests:             0
 ReadVSubRequests:          0
 ReadVSubChunks:            0
 ReadVBytes:                0
 ReadVAsyncRequests:        0
 ReadVAsyncSubRequests:     0
 ReadVAsyncSubChunks:       0
 ReadVAsyncBytes:           0
 ReadAsyncRequests:         1
 ReadAsyncBytes:            192
----
[root@se1 xrootd]# ( ulimit -u ; /etc/init.d/xrootd restart test )
unlimited
Shutting down xrootd (xrootd, test):                       [  OK  ]
Starting xrootd (xrootd, test):                            [  OK  ]
----
[meloam@vmps11] $ xrdcp -f -v -d 1 root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts .
Set debug level 1
151105 23:58:41 001 Xrd: main: (C) 2004-2011 by the XRootD collaboration. Version: v3.1.0
151105 23:58:41 001 Xrd: Create: (C) 2004-2010 by the Xrootd group. XrdClient $Revision$ - Xrootd version: v3.1.0
151105 23:58:41 001 Xrd: ShowUrls: The converted URLs count is 1
151105 23:58:41 001 Xrd: ShowUrls: URL n.1: root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts.
151105 23:58:41 001 Xrd: ShowUrls: The converted URLs count is 1
151105 23:58:41 001 Xrd: ShowUrls: URL n.1: root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts.
151105 23:59:11 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151105 23:59:41 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:00:11 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:00:41 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:01:11 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:01:41 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:02:11 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:02:41 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:03:11 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:03:41 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:03:41 001 Xrd: DoHandShake: Failed to read 4 bytes. Retrying ...
151106 00:03:41 001 Xrd: GetAccessToSrv: HandShake failed with server [se1.accre.vanderbilt.edu<http://se1.accre.vanderbilt.edu>:1095]
151106 00:03:41 001 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 NotValid
151106 00:03:41 001 Xrd: DumpPhyConn: Phyconn entry, key='Trashed connection', LogCnt=1 NotValid
151106 00:03:41 001 Xrd: Open: Access to server failed: error: 10000 () - retrying.
151106 00:03:41 001 Xrd: Open: Connection attempt failed. Sleeping 5 seconds.
151106 00:03:46 001 Xrd: ShowUrls: The converted URLs count is 1
151106 00:03:46 001 Xrd: ShowUrls: URL n.1: root://se1.accre.vanderbilt.edu:1095//home/meloam/xrootd-test/hosts.
151106 00:04:11 48917 Xrd: DumpPhyConn: Phyconn entry, [log in to unmask]<mailto:[log in to unmask]>:1095', LogCnt=1 Valid
151106 00:04:11 48917 Xrd: DumpPhyConn: Phyconn entry, key='Trashed connection', LogCnt=0 NotValid
^C


Restarting the test server with xrd.trace all yields the following log:

151106 00:36:02 29869 Starting on Linux 2.6.32-431.el6.x86_64
Copr.  2004-2012 Stanford University, xrd version v4.2.3
++++++ xrootd [log in to unmask]<mailto:[log in to unmask]> initialization started.
Config using configuration file /etc/xrootd/xrootd-test.cfg
=====> xrd.port 1095
=====> xrd.trace all
Config maximum number of connections restricted to 64000
Config maximum number of threads restricted to -1
151106 00:36:02 29869 XrdConfig: sendfile enabled.
151106 00:36:02 29869 XrdSched: scheduling underused thread monitor in 780 seconds
151106 00:36:02 29869 XrdScheduler: Thread limit has been reached!
151106 00:36:02 29869 XrdSched: Starting with 0 workers
151106 00:36:02 29869 XrdLink: Allocating 8 link objects at a time
151106 00:36:02 29869 XrdPoll: Starting poller 0
151106 00:36:02 29869 XrdPoll: Starting poller 1
151106 00:36:02 29869 XrdPoll: Starting poller 2
151106 00:36:02 29869 XrdProtocol: getting port from protocol xrootd
151106 00:36:02 29869 XrdConfig: LCL port 1095 wsz=87380 (87380)
151106 00:36:02 29869 XrdProtocol: getting protocol object xrootd
Copr.  2012 Stanford University, xrootd protocol 3.0.0 version v4.2.3
++++++ xrootd protocol initialization started.
=====> all.export /home/meloam/xrootd-test/
Config exporting /home/meloam/xrootd-test/
Config warning: 'xrootd.seclib' not specified; strong authentication disabled!
Config Routing for se1.accre.vanderbilt.edu<http://se1.accre.vanderbilt.edu>: local pub4 prv4
Config Route all4: se1.accre.vanderbilt.edu<http://se1.accre.vanderbilt.edu> Dest=[::129.59.197.244]:1095
++++++ File system initialization started.
=====> ofs.authorize
++++++ Storage system initialization started.
=====> all.export /home/meloam/xrootd-test/
Config effective /etc/xrootd/xrootd-test.cfg oss configuration:
       oss.alloc        0 0 0
       oss.cachescan    600
       oss.fdlimit      32000 64000
       oss.maxsize      0
       oss.trace        0
       oss.xfr          1 deny 10800 keep 1200
       oss.memfile off  max 33751465984
       oss.defaults  r/w  nocheck nodread nomig norcreate nopurge nostage xattr
       oss.path /home/meloam/xrootd-test/ r/w  nocheck nodread nomig norcreate nopurge nostage xattr
------ Storage system initialization completed.
++++++ Authorization system initialization started.
151106 00:36:02 29869 acc_Config: Authorization system using configuration in /etc/xrootd/xrootd-test.cfg
=====> acc.authdb /etc/xrootd/Authfile-test
=====> acc.audit deny grant
Config 2 authorization directives processed in /etc/xrootd/xrootd-test.cfg
Config 1 auth entries processed in /etc/xrootd/Authfile-test
------ Authorization system initialization completed.
Config effective /etc/xrootd/xrootd-test.cfg ofs configuration:
       all.role server
       ofs.authorize
       ofs.maxdelay   60
       ofs.persist    manual hold 600 logdir /tmp/test/.ofs/posc.log
       ofs.trace      0
------ File system server initialization completed.
151106 00:36:02 29869 XrdSched: scheduling xrootd protocol anchor in 3600 seconds
Config warning: 'xrootd.prepare logdir' not specified; prepare tracking disabled.
------ xrootd protocol initialization completed.
------ xrootd [log in to unmask]<mailto:[log in to unmask]>:1095 initialization completed.


—
Reply to this email directly or view it on GitHub<https://github.com/xrootd/xrootd/issues/288#issuecomment-154326450>.

________________________________

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


########################################################################
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

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use