osx - In Mac OS X, how can I get an accurate count of file descriptor usage? -
On Linux, use ulimit -n to change or view the extent of the number File descriptor for a process, and lsof -p nnn | Wc -l constantly reports actual file descriptor use
but Mac OS X, LSOF-PNN | Wc -l can return more than the limit on the limit I think it means lsof is returning more than just the file descriptors, but I can not tell what is what .
Bottom line: How can I make accurate calculation using file descriptor in Mac OS X?
The LSOF can show many things beyond just the file descriptor, but Increasing your countdown is usually the frameworks and libraries loaded for an application. You can see the "FD" column whether a line is a file descriptor - in that case it is a number, possibly A letter indicating that mode - or else (see the details of the FD column LSOF man page for complete list)
If you get close to an exact value, then you need some approximation by adding 'grep -v' txt "'before your wc. If you need an exact price, you Probably, a rajx should be put together to feed the output through FD column through Fader.
Comments
Post a Comment