From: "Patrick R. McManus" <mcmanus@ducksong.com>
To: Ian Blanes <ian@gentemsn.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: high system load on tcp_poll and tcp_sock in 2.6 caused by squid
Date: Tue, 03 Jan 2006 12:08:16 -0500 [thread overview]
Message-ID: <1136308096.4965.13.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.58.0601031723080.2818@workstation.zul>
On Tue, 2006-01-03 at 17:43 +0100, Ian Blanes wrote:
> Hi,
>
> I'm getting this report from oprofile from a squid server with about 2000
> clients. I'm not sure if this is normal... any idea on where to look?
>
> thanks
> ian
>
> Cpu0 : 20.0% us, 43.3% sy, 0.0% ni, 20.1% id, 15.8% wa, 0.9% hi, 0.0%
> si
oh that's going to be quite normal for any poll driven application with
a lot of concurrent connections.. think about what poll() does - it
scans all 2000 sockets and returns to you the set of ones that have
something to do.. assuming a small fraction of them meet that criteria
it does just a little work to satisfy their needs and then repeats the
process..
the epoll() style interface that is also in the kernel lets the
application essentially get change events instead of doing that big
repeated scan.. its much more efficient but it needs to be supported by
the application.
prev parent reply other threads:[~2006-01-03 17:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-03 16:43 Ian Blanes
2006-01-03 17:08 ` Patrick R. McManus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1136308096.4965.13.camel@localhost.localdomain \
--to=mcmanus@ducksong.com \
--cc=ian@gentemsn.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®