- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Number of open files and file locks
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 09:36 AM
04-01-2003 09:36 AM
Number of open files and file locks
Using kmtune I displayed both nfile and nflocks and they have reached the value 8196 (that is the maximum for my system). Using:
lsof | wc
only 1775 files seems to be open.
What I'm doing wrong? Why kmtune reports 8196 open files (and 8196 file locks) while only 1775 are reported by lsof?
If lsof is not the rigth tool, which one can I use to display all the active file locks and which process owns them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 09:39 AM
04-01-2003 09:39 AM
Re: Number of open files and file locks
try monitoring using Glance Plus.
You will have a more detailed report.
Hth
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 09:43 AM
04-01-2003 09:43 AM
Re: Number of open files and file locks
If not, where can I download GlancePLus. It seems it is not installed on my machine.
Thanks,
Bernardo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 09:45 AM
04-01-2003 09:45 AM
Re: Number of open files and file locks
You should be able to find a 30 (or is it 60?) day trial version of Glance on your application CD's.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 12:14 PM
04-01-2003 12:14 PM
Re: Number of open files and file locks
Has anything changed on the system ? Increased load, new software, etc ?
Various software packages (Samba, Microfocus Cobol, etc) can put additional stress onto the system in the area of nflocks.
Applications that lock at a record level may create more then one lock per file.
Given that nflock is a "cheap" variable (i.e. it only takes 104 bytes worth of space) to allocate, I would multiply your current value by 1.5 ro 2* (e.g. set it to 12294 or 16392) and see if this fixes the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 12:30 PM
04-01-2003 12:30 PM
Re: Number of open files and file locks
Regards,
RZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 03:28 PM
04-01-2003 03:28 PM
Re: Number of open files and file locks
The max size for nflocks is dependent on the application requirements. You may need to double or triple nflocks. Beyond that, I would be very suspicious of the programs using so many locks and talk to the programmer(s).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 01:49 AM
04-02-2003 01:49 AM
Re: Number of open files and file locks
"kmadmin: module: No locks available"
But glance reports:
nflocks 18 used out of 8196
nfile 638 used out of 8202
Also, the message displayed by kmadmin is correct: the system call to load the module fails with errno ENOLCK.
At this point I'm quite confused. Why kmadmin fails because of a locks shortage while there are thousands of locks available?