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

Hash: SHA1

On Fri, 14 Nov 2003 11:36:45 -0500
Gregory Gimler <shark at> 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>
Boston Linux and Unix user group PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)


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 /