- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: strange maxfiles problem
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
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
11-14-2008 05:34 AM
11-14-2008 05:34 AM
strange maxfiles problem
There is a bug in oracle RAC, with a process that opens loads of files, in my case 61189, I increased the nfiles to 90000, because i was getting the Table is full, message in syslog
[root@sdp:/tmp]# lsof G 2344 | wc -l
61189
The thing is .. that I haven't increased the maxfiles and the database is working with no problem.
Does it make any sense?, shouldn't the system stop oracle from opening more than 2048 file descriptors?
[root@sdp:~]# kcusage
maxfiles_lim 61151 / 4096
nfile 65635 / 90000
[root@sdp:~]# kctune G maxfiles
maxfiles 2048 Default
maxfiles_lim 4096 Default Immed
sdp@oracle:>ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
:?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2008 05:58 AM
11-14-2008 05:58 AM
Re: strange maxfiles problem
The 'maxfiles' paramters is a *per-process* file descriptor limitation. It is 'nfile' that sets the overall, system fence.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2008 09:04 AM
11-14-2008 09:04 AM
Re: strange maxfiles problem
[root@sdp:/tmp]# lsof -p 2344 | wc -l
61189
the process is from oracle,and the maxfiles per process is 2048.
you can see maxfiles in kcusage is way over the top:
[root@sdp:~]# kcusage
maxfiles_lim 61151 / 4096
thnx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2008 11:27 AM
11-14-2008 11:27 AM
Re: strange maxfiles problem
The "soft limit" for open files per process is governed by 'maxfiles'. Processes can increase this up to the "hard limit" set by 'maxfiles_lim'.
The 'maxfiles_lim' is a dynamic tunable as your data shows.
As an aside, counting open files with 'lsof' as you did, may suggest too large an open count. You undoubtedly have memory-mapped files represented and it is possible to mmap() a file after opening it and then close the descriptor.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2008 03:36 AM
11-15-2008 03:36 AM
Re: strange maxfiles problem
if maxfiles_lim is the hard limit and its 4096.
why kcusage shows 61151 on maxfiles_limit ?
[root@sdp:~]# kcusage
maxfiles_lim 61151 / 4096
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2008 05:33 AM
11-15-2008 05:33 AM
Re: strange maxfiles problem
Perhaps kcusage(1m) is making the same mistake as lsof?