LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-16-2011, 02:12 PM   #1
haux
LQ Newbie
 
Registered: Jan 2010
Location: canada
Distribution: Ubuntu, Redhat, Debian
Posts: 9

Rep: Reputation: 0
How many files are opened by the Kernel ?


Hi,

Where can I find in /proc the number of opened files actually (not how to set the maximum )

Thanks
 
Old 09-16-2011, 02:58 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Code:
[root@srv-4 proc]# cat /proc/sys/fs/file-nr
3391    969     52427
|	 |       |
|	 |       |
|        |       maximum open file descriptors
|        total free allocated file descriptors
total allocated file descriptors
(the number of file descriptors allocated since boot)
Have a look here: GNU/Linux - How Many Open Files?

Do read the What is an open file? part. Maybe you are looking for lsof | wc -l as mentioned in the article.

Hope this helps.
 
Old 09-18-2011, 02:18 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
It is somewhat unclear what the OP means - the distinction between the number of files that the kernel has open at one time, and the number of files that the kernel has had open, presumably since it has been booted, would lead to a difference.

I can only really see a sensible reason to know the number of files that the kernel has open at one time (and that one time to be now), but it is always best to be prepared to be surprised.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find out the number of files currently opened closet geek Linux - Kernel 5 05-19-2015 08:19 AM
[SOLVED] Samba 4 alpha13 - too many opened files KamasCZ Linux - Server 1 02-04-2011 12:02 PM
Increase the no of Files opened titusabraham Linux - Newbie 1 10-03-2009 04:00 PM
why .php files cant be opened in browser...... jestinjoy Programming 5 05-24-2008 02:38 PM
how to know the files and directories which are opened? sridhar_yerram Linux - Newbie 1 01-11-2008 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration