Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Tuning Number of Open Files
@ 1998-07-25  1:16 Bill
  0 siblings, 0 replies; 3+ messages in thread
From: Bill @ 1998-07-25  1:16 UTC (permalink / raw)
  To: axp-list@redhat.com

Is there a way to monitor the number of open files . I am familiar with
commands like pstat or sar found in some implementations of unix. In the
past, on other systems I have had to increase the following:

	number of open files (system wide)
	number of open files (per user)
	Max number of processes per user

Are these kernel parameters also applicable to linux/alpha? 

Is there a utility to monitor them under linux/alpha?

Is there a utility to modify them or is it time to edit the kernel
source and recompile?

Thanks in advance

Bill Edmonson


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tuning Number of Open Files
@ 1998-07-25  1:31 Greg Lindahl
  1998-07-28  9:22 ` Andi Hechtbauer
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Lindahl @ 1998-07-25  1:31 UTC (permalink / raw)
  To: wae; +Cc: axp-list

> Is there a way to monitor the number of open files . I am familiar with
> commands like pstat or sar found in some implementations of unix. In the
> past, on other systems I have had to increase the following:
> 
> 	number of open files (system wide)

cat /proc/sys/kernel/file-max
echo 8192 > /proc/sys/kernel/file-max

> 	number of open files (per user)

Can't be usefully changed -- limited to 256. glibc doesn't dynamically
allocate that data structure, so if you increase it in the kernel and
recompile it _and_ glibc, all processes get bigger :-(

> 	Max number of processes per user

/usr/include/linux/tasks.h

Change NR_TASKS, recompile kernel. Look in limits.h to see if
CHILD_MAX needs to change; it defaults to NR_TASKS/2

-- g



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tuning Number of Open Files
  1998-07-25  1:31 Tuning Number of Open Files Greg Lindahl
@ 1998-07-28  9:22 ` Andi Hechtbauer
  0 siblings, 0 replies; 3+ messages in thread
From: Andi Hechtbauer @ 1998-07-28  9:22 UTC (permalink / raw)
  To: axp-list; +Cc: anti

Greg Lindahl <lindahl@cs.virginia.edu> writes:

> > Is there a way to monitor the number of open files . I am familiar with
> > commands like pstat or sar found in some implementations of unix. In the
> > past, on other systems I have had to increase the following:
> > 
> > 	number of open files (system wide)
> 
> cat /proc/sys/kernel/file-max
> echo 8192 > /proc/sys/kernel/file-max

You may want to add

cat /proc/sys/kernel/inode-max
echo 8192 > /proc/sys/kernel/inode-max

to that, or risk running out of inodes...

-- 
Andi Hechtbauer                                           anti@spin.de 
System Administration                         voice: +49 941 94 65 937
SPiN GmbH               http://www.spin.de/     fax: +49 941 94 65 938  
------- web design - java chats - guestbooks - java/cgi coding -------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-07-28 10:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-25  1:31 Tuning Number of Open Files Greg Lindahl
1998-07-28  9:22 ` Andi Hechtbauer
  -- strict thread matches above, loose matches on Subject: below --
1998-07-25  1:16 Bill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox