[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2/8] oxenstored: add facilities to raise the max open fds uplimit



Hi David,

On 16/09/2014 10:38, David Vrabel wrote:
On 15/09/14 23:39, Zheng Li wrote:
We need to know the system level max open fds so that we won't go above that.
Simply setting the limit to RLIM_INFINITY doesn't work on Linux 3.x (EPERM), a
patch on this went into the 2.x branch but not 3.x for some reason. Also,
getting the system level nr_open is not very straightfoward on 3.x, which is
mentioned in the comment inline.

 From sysctl(2):

        "Since Linux 2.6.24, uses of [the sysctl] system call result in
         warnings in the kernel log.   Remove  it  from  your
         programs now; use the /proc/sys interface instead."

So using /proc/sys is the correct method and not some awkward workaround.


Good to know that, in which case I can remove majority words of the inline 
comment.

Will do in v2 (and reword the changeset summary).

Thanks,
Zheng

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.