Re: [squid-users] urgent - aufs

From: Robert Collins <robert.collins@dont-contact.us>
Date: 25 Aug 2001 16:52:01 +1000

On 25 Aug 2001 11:56:24 +0530, jack wrote:
> My question is if i enable aio then squid running process should be more than one. But i was able to see only one process is running state and others are in sleep state. Why others process are not running.

Ok.. well I'm not authoritative on aufs, but I'll comment, and if I'm
wrong, I'm sure others will speak up :]
 
In aufs, squid still runs single-process. The extra process's you are
seeing are due to Linux's threading model - when a process creates a
thread, linux shows a separate process for that. So what you are seeing
is a bunch of sleeping threads - which is what you would expect. If
squid is keeping up with 100 req/sec, then I'd say nothing is wrong.

The reason you expect to see the disk worker threads sleepings is
because all they do (roughly) is:
1) wait on a condition variable (sleeping in ps)
2) read a disk access request from the queue,
3) perform blockign disk io to read/write the request (shows as
sleeping)
4) return the disk request result to squid and goto 1)

Steps 2 and 4 are _very very_ fast, typically they will complete in a
single timeslice. So you'll never see them doing anything other than
sleep.

Rob

> I am tested with 100 req/sec.
>
> -Jack
Received on Sat Aug 25 2001 - 00:51:53 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:55 MST