LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2009, 05:55 AM   #1
deepak_cucek
Member
 
Registered: Feb 2008
Posts: 36

Rep: Reputation: 16
Question what is max_load parameter in /etc/xinetd.conf


am using suse 10 sp1

in /etc/xinetd.conf , we have one parameter max_load,
as per man page

"Takes a floating point value as the load at which the service will stop accepting connections. For example: 2 or 2.5. The service will stop accepting connections at this load. This is the one minute load average. This is an OS dependent feature, and currently only Linux, Solaris, and FreeBSD are supported for this. This feature is only avaliable if xinetd was configured with the -with-loadavg option. "


what is this load means , how we can check currently how much load cpu is accepting ....?

thanks in advance
 
Old 08-19-2009, 06:09 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by deepak_cucek View Post
am using suse 10 sp1

in /etc/xinetd.conf , we have one parameter max_load,
as per man page

"Takes a floating point value as the load at which the service will stop accepting connections. For example: 2 or 2.5. The service will stop accepting connections at this load. This is the one minute load average. This is an OS dependent feature, and currently only Linux, Solaris, and FreeBSD are supported for this. This feature is only avaliable if xinetd was configured with the -with-loadavg option. "


what is this load means , how we can check currently how much load cpu is accepting ....?

thanks in advance
use top.

this shows the last 1, 5 and 15 minutes of load in that order
taken from wiki


Code:
For example, one can interpret a load average of "1.73 0.50 7.98" on a single-CPU system as:

    * during the last minute, the CPU was overloaded by 73% (1 CPU with 1.73 runnable processes, so that 0.73 processes had to wait for a turn)
    * during the last 5 minutes, the CPU was underloaded 50% (no processes had to wait for a turn)
    * during the last 15 minutes, the CPU was overloaded 698% (1 CPU with 7.98 runnable processes, so that 6.98 processes had to wait for a turn)

This means that this CPU could have handled all of the work scheduled for the last minute if it were 1.73 times as fast, or if there were two (1.73 rounded up) times as many CPUs, but that over the last five minutes it was twice as fast as necessary to prevent runnable processes from waiting their turn.
so in effect, the max_load directive is like a safeguard to stopping constant overloading of your system

Last edited by centosboy; 08-19-2009 at 06:11 AM.
 
Old 08-19-2009, 06:15 AM   #3
deepak_cucek
Member
 
Registered: Feb 2008
Posts: 36

Original Poster
Rep: Reputation: 16
thanx centosboy

actually my concern is

1:telnet is enabled in my machine
2:sometime connection is establishing , but some time connection is refusing with the server
3: the max_load is 20 in my machine

i want to know this will be the reason am able to make a connection with suse machine..?
or is there will be any other reason...?
 
Old 08-19-2009, 08:12 AM   #4
deepak_cucek
Member
 
Registered: Feb 2008
Posts: 36

Original Poster
Rep: Reputation: 16
if the entry max_load is not there is /etc/xinetd.conf , what will be the default value taken by OS


thanks in advance
 
Old 08-19-2009, 07:52 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
It just means that if xinetd was configured with -with-loadavg, AND you set max_load = 20, the it will stop accepting cxns if that load avg is reached.
By reading the manpage, I'd expect that the default is none ie no limit is set.

Its certainly possible that your system will be unable to accept cxns for other reasons eg its overloaded by some process(es), or acct locked or iptables blocked or tcp_wrappers blocked etc etc.

BTW, an avg of over 5 is a bit heavy, over 10 is very heavy.
What does 'top' show?
 
Old 08-20-2009, 12:45 AM   #6
deepak_cucek
Member
 
Registered: Feb 2008
Posts: 36

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by chrism01 View Post
It just means that if xinetd was configured with -with-loadavg, AND you set max_load = 20, the it will stop accepting cxns if that load avg is reached.
By reading the manpage, I'd expect that the default is none ie no limit is set.

Its certainly possible that your system will be unable to accept cxns for other reasons eg its overloaded by some process(es), or acct locked or iptables blocked or tcp_wrappers blocked etc etc.

BTW, an avg of over 5 is a bit heavy, over 10 is very heavy.
What does 'top' show?

in the first line of the top command i can see the below line

"load average : 25.10 . 18.10 , 21.20 "
 
Old 08-20-2009, 01:41 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
If you really want to understand load averages read these

http://www.teamquest.com/resources/g...ay/5/index.htm
http://www.teamquest.com/resources/g...ay/7/index.htm

and some of the links in there. Basically, the machine shows you what's happening, but its up to you to decide if the performance is good enough or not...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/etc/xinetd.conf vs /etc/xinetd.d foampile Linux - Server 2 04-24-2009 06:33 PM
telnetd/xinetd connection problem with server_args parameter Reginald0 Linux - Server 2 03-02-2009 02:58 PM
inetd.conf and xinetd.conf files are missing Swagata Paul Linux - Software 2 07-02-2008 04:12 AM
inetd.conf versus xinetd.conf jedimastermopar Red Hat 1 07-23-2007 03:17 PM
convert from inetd.conf to xinetd.conf linuxturtle Linux - Networking 7 11-12-2003 05:23 AM


All times are GMT -5. The time now is 02:17 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration