On Tue, 2008-12-02 at 14:23 +0000, Justin Cook wrote:
> sysctl -n fs.file-nr | awk '{print$1}'Passing Fail ;o) $1 is Allocated File Descriptors $2 is Free Allocated File Descriptors On 2.6 kernels $2 == 0 because unallocated file descriptors immediately become free, but on 2.4 you can have an allocated file descriptor which is now free and hence doesn't count towards the open files total. If you run that command on RHEL3, it would be wrong. But as this is a RHEL5 list, you're right - I'm just righter ;o) -- Sam > On Tue, Dec 2, 2008 at 2:19 PM, Sharpe, Sam J <[EMAIL PROTECTED]> wrote: > > http://www.netadmintools.com/part295.html > > > > > > > > cat /proc/sys/fs/file-nr | awk '{print $1-$2}' > > _______________________________________________ > rhelv5-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rhelv5-list _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
