- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: nfile keep on increasing
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
07-05-2006 03:59 PM
07-05-2006 03:59 PM
nfile keep on increasing
I need help on my DB machine, rp4440.
I face the "file table overflow" problem and crash the oracle. I increased the nfile to solve the problem. However, when I check the sar, I find the file opening keeps on increasing , but inode and process is stable.
yesterday
14:01:04 text-sz ov proc-sz ov inod-sz ov file-sz ov
14:01:06 N/A N/A 658/24020 0 2622/194208 0 134296/362358 0
14:01:08 N/A N/A 658/24020 0 2624/194208 0 134303/362358 0
14:01:10 N/A N/A 659/24020 0 2624/194208 0 134422/362358 0
14:01:12 N/A N/A 658/24020 0 2624/194208 0 134590/362358 0
14:01:14 N/A N/A 658/24020 0 2624/194208 0 134772/362358 0
today:
09:54:05 text-sz ov proc-sz ov inod-sz ov file-sz ov
09:54:07 N/A N/A 653/24020 0 2615/194208 0 140862/362358 0
09:54:09 N/A N/A 653/24020 0 2615/194208 0 140861/362358 0
09:54:11 N/A N/A 653/24020 0 2615/194208 0 140861/362358 0
09:54:13 N/A N/A 654/24020 0 2615/194208 0 140862/362358 0
09:54:15 N/A N/A 656/24020 0 2615/194208 0 140862/362358 0
Any solution, or I increase the nfile to million?
my kernal setting is
max_users= 3000
nproc=24020
nfile=362358
oracle max datafile = 1200
pls help.
Nico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 04:09 PM
07-05-2006 04:09 PM
Re: nfile keep on increasing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 06:18 PM
07-05-2006 06:18 PM
Re: nfile keep on increasing
do u have this situation?
nfile increase steadily, not decrease?
I concern about it reach the limit, and It is hard to reboot the machine to tune up the parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 06:21 PM
07-05-2006 06:21 PM
Re: nfile keep on increasing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 06:32 PM
07-05-2006 06:32 PM
Re: nfile keep on increasing
nfile = 15*nproc + 2048
for Oracle database
I think the nfile should depend on max datafile
nfile = oracle max no. of datafile + max process
am I correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 06:33 PM
07-05-2006 06:33 PM
Re: nfile keep on increasing
now, the nfile value is depends on nproc
nfile = 15*nproc + 2048
for Oracle database
I think the nfile should depend on max datafile
nfile = oracle max no. of datafile * max process
am I correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 07:04 PM
07-05-2006 07:04 PM
Re: nfile keep on increasing
You're values look sufficiently high to me.
Maxusers = 3000 and nproc is 24020.
That is really quite large a resource you
allocate to the unix kernel for usage by
calling apps.
I would be very surprised when the db's and apps need to use all these resources ???
(Unless your specific documentation for your apps say otherwise, I would need to see proof)
I think it is more likely that there is something not right with the way filehandles
are opened and then not closed. This looks more like a bug or bad code then a matter of not having tuned your kernel correctly.
If that assumption is right, then it is not
advisable to increase your kernel resources,
as you would only allocated more waste to the
problem and it could lead to an instable kernel. So I would not touch the kernel side.
Did you install all the patches for your
apps and Oracle or even unix itself?
If I were you I would concentrate on this,
rather then tuning the kernel.
It is not normal your system needs some many
nfiles, to my experience that looks wrong.
And increasing it could have the opposite effect.
Do you notice any other symptons that would give you a clue ?? CPU usage ? forks ? , paging ? Client connections ?
Which version of Oracle do you use ?
What parameters in the spfile (of pfile) ?
What are the apps running ?
Is is SAP, WebSphere or something else ?
Hope this inspires you to start looking in the right direction :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 05:42 AM
07-06-2006 05:42 AM
Re: nfile keep on increasing
Since this is a production machine and using all the file handles from the nfile limit is a big problem, you can try changing nfile to 500,000 but I suspect that you have a runaway process so it will still be a problem. So I would watch sar -v while you shutdown the Oracle instances. See if there is a dramatic drop in file usage. If not, then whatever is left running is probably the problem. Note that these files may not be disk files -- they could be network ports and a bad network application is causing all the issues.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 02:29 PM
07-06-2006 02:29 PM
Re: nfile keep on increasing
I suspect it is oracle problem, becuase we use MTS for all applications.
We tried to shrink the shared server and find the nfile reduced.
Before our testing, the nfile usage is as follow:
15:36:20 text-sz ov proc-sz ov inod-sz ov file-sz ov
15:36:23 N/A N/A 659/24020 0 2637/194208 0 143279/362358 0
15:36:26 N/A N/A 659/24020 0 2636/194208 0 143277/362358 0
15:36:29 N/A N/A 659/24020 0 2636/194208 0 143277/362358 0
15:36:32 N/A N/A 659/24020 0 2636/194208 0 143277/362358 0
15:36:35 N/A N/A 659/24020 0 2636/194208 0 143277/362358 0
After changing the number of shared servers from 480 to 240 and then back to 480, the sar output is as follow:
15:45:27 text-sz ov proc-sz ov inod-sz ov file-sz ov
15:45:30 N/A N/A 498/24020 0 2477/194208 0 105652/362358 0
15:45:33 N/A N/A 523/24020 0 2501/194208 0 105773/362358 0
15:45:36 N/A N/A 536/24020 0 2515/194208 0 105843/362358 0
15:45:39 N/A N/A 560/24020 0 2538/194208 0 105960/362358 0
15:45:42 N/A N/A 579/24020 0 2556/194208 0 106039/362358 0
SQL Statements are as follow:
ALTER SYSTEM SET SHARED_SERVERS=240 SCOPE=BOTH;
after 10 secs,
ALTER SYSTEM SET SHARED_SERVERS=480 SCOPE=BOTH;
Nico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 02:49 PM
07-06-2006 02:49 PM
Re: nfile keep on increasing
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 09:08 PM
07-06-2006 09:08 PM
Re: nfile keep on increasing
For example, nfile, the max value depends on the memory limitation. I dont know how large for this parameter which is enough for our system.
We set a large value of nproc because nfile is depends on nproc
nfile = (15*nproc) + 2048
Nico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 10:43 PM
07-06-2006 10:43 PM
Re: nfile keep on increasing
Now having some of these parameters extremely large is not really a problem except that the kernel will be quite a bit larger in RAM. If you have plenty of RAM, you can just increase nfile to keep ahead of actual file usage. But don't increase maxusers -- it will just keep making other parameters far too large.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2006 07:21 PM
07-09-2006 07:21 PM
Re: nfile keep on increasing
his comments about maxusers. Totally agree !
However,
I can't understand why nfile has to be
so large 500.000 ?? I would opt
for something much smaller.
If maxusers = 2000
then nproc = 20.000
then nfile = 250.000 should more then suffice !
I personally subscribe to a different philosophy. Do no sacrifice your system resources for one particular apps code.
You need to be strict.
If one has to give so many resources to keep
things working, to me that only increases the problem sooner or later.
One of the functions of resource limits,
to my mind, is to keep a lit on bad code,
or looping progs. That to me is part of good
tuning practise.
You just tell every programmer , yeah it is
okay to right shitty code, but don't worry
we will tune it somehow !!
(Not when I am in charge :)
The other interesting paradox I came accross,
if one has so much RAM to allocate huge resource, then why are they using MTS (Multi-threaded services). This is an offspring from the days that memory was tight,and to share processes as much as possible.
I am surprised people are still using this
technology.
I would keep it simple (But I suspect
your application is demanding this kind of
configuration, then I feel for you :)
That was a tough purchase then.
Anyway that is the opinion of one person,
which happens to be mine.
Still it may be interesting for you
to learn about different point of views.