How to find 3 OS parameters
Matt Galster
mattg at timesucker.ne.client2.attbi.com
Fri Nov 14 14:39:18 EST 2003
I interpreted his question as the maximum number possible, not how many are extant.
MEG
"--- begin copied/edited message from Dan Barrett ---"
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Friday 14 November 2003 11:36, Gregory Gimler wrote:
> > 1) number of processes
>
> # Check the man page; I think -ef gets _all_ processes
> ps -ef | wc -l
>
>
> > 2) number of threads
>
> No idea, but if you can grok /proc/$PROCESS_NUMBER/stat, then you're in
> business.
>
>
> > 3) number of simultaneous open files
>
> # You can throw some switches at lsof if you only want, say, data files
> # on a userland disk partition
> lsof | wc -l
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
>
> iD8DBQE/tR1+sIjNiQTGkXARAsgWAJ9EBUp4hHpDZxw82fodizIxWJJdOwCgx4Ov
> HzuCeJL9V7ohHuTnjwZ7xeI=
> =tntP
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list