Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

How to find 3 OS parameters



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 14 Nov 2003 11:36:45 -0500
Gregory Gimler <shark at ll.mit.edu> wrote:

> Hello,
> 
> Is there a generic way of finding out certain system attributes for a
> linux OS: 1) number of processes
> 2) number of threads
> 3) number of simultaneous open files
> 
> I'd like to find these values on modern versions(>7) of Suse and on 
> Redhat.  I'm running into limitations on
> some DBMS benchmarks.
The ulimit command will give you some of the information. The
getrlimit(2) and setrlimit(2) system calls also provide a way to get at
these, except the threads. The max number of threads is usually set in
the kernel. Some Unix systems allow this to be a configurable limit
without rebuilding the kernel, but I believe that on Linux you must
change PTHREAD_THREADS_MAX in the header file and rebuild the kernel. I
could be wrong on this since I have not changed that parameter on Linux
for a few years. 
- -- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/tTQO+wA+1cUGHqkRAn7UAJ9q0Klx8A/zdkn6Zs+B5HznxWbDPwCdG2bS
yWOqMEv0ibvgx+n5Ro0Ocbg=
=Rwu/
-----END PGP SIGNATURE-----




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org