Comment # 24 on bug 1165351 from
(In reply to Thorsten Kukuk from comment #20)
> (In reply to Luis Chamberlain from comment #19)
> > (In reply to Thorsten Kukuk from comment #17)
> > > If you set the limit lower than
> > > possible, you could get a out of array access.
> > > The code was written at a time, when 1024 file handles was the maximum
> > > possible, not for that big numbers as of today.
> > 
> > chivo:~/:[0]# cat /proc/sys/fs/file-max
> > 9223372036854775807
> 
> That's why this is no good practice today anymore and needs to be rewritten.

But the above is file-max, I think __rpc_dtbsize() gets the RLIMIT_NOFILE,
which is different. FWIW:

mcgrof@chivo ~ $ sudo cat /proc/sys/fs/nr_open
1073741816
mcgrof@chivo ~ $ python -c "import resource;
print(resource.getrlimit(resource.RLIMIT_NOFILE))"
(1024, 524288)


You are receiving this mail because: