All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Friesen <chris_friesen@sympatico.ca>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] convert udevsend/udevd to using datagram sockets
Date: Thu, 05 Feb 2004 06:53:12 +0000	[thread overview]
Message-ID: <4021E858.7010206@sympatico.ca> (raw)
In-Reply-To: <40209893.8080109@sympatico.ca>

Kay Sievers wrote:

> You are talking about complexity, but what is about speed?
> 
> blocking daemon: time for i in `seq 1 100`; do SEQNUM=$i ACTION­d 
> DEVPATH=$i ./udevsend x; done real    0m1.175s user    0m0.054s sys 
> 0m0.081s
> 
> threading daemon: time for i in `seq 1 100`; do SEQNUM=$i ACTION­d 
> DEVPATH=$i ./udevsend x; done real    0m0.048s user    0m0.018s sys 
> 0m0.029s
> 
> I don't see what we get with the blocking I/O. It seems more like 
> personal taste than numbers. :)

Interesting numbers.  I instrumented the code in udevd using the x86 tsc
and got the following amounts of time to receive and queue all the
requests:

blocking recv() and datagrams: .13-.18 ms
threaded and streams: .05-.18 ms

I'm curious why my blocking recv() times are roughly on par with the
threaded numbers, while yours are much worse.

When I time how long it takes until all the requests are satisfied (i.e.
run_threads() has run 100 times), its 4-4.8 seconds either way--it
doesn't seem to matter.  Looks like this is due to the size of
EVENT_TIMEOUT_SEC more than anything else.

Note that these numbers are with a 1.6GHz Athlon XP, 2.6.1 kernel, and
linuxthreads rather than NPTL. (I know, I need to get NTPL going....)

I'm playing with a single-threaded version.  I'll let you know if it 
amounts to anything.

Chris





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      parent reply	other threads:[~2004-02-05  6:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-04  7:00 [PATCH] convert udevsend/udevd to using datagram sockets Chris Friesen
2004-02-04 14:02 ` Kay Sievers
2004-02-04 15:34 ` chris_friesen
2004-02-04 21:06 ` Mike Waychison
2004-02-05  1:24 ` Chris Friesen
2004-02-05  2:08 ` Mike Waychison
2004-02-05  6:53 ` Chris Friesen [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=4021E858.7010206@sympatico.ca \
    --to=chris_friesen@sympatico.ca \
    --cc=linux-hotplug@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.