* reading config files with klibc slow
@ 2004-03-12 16:41 Olaf Hering
2004-03-12 17:06 ` Kay Sievers
2004-03-12 17:19 ` Olaf Hering
0 siblings, 2 replies; 3+ messages in thread
From: Olaf Hering @ 2004-03-12 16:41 UTC (permalink / raw)
To: linux-hotplug
fgets from klibc does a read for each single char, which makes it a bit
slow.
Should I fix klibc or change udev to read the config files in bigger chunks?
smirnow:~ # ACTION≠d DEVPATH=/block/loop6 strace -ttfo foo /sbin/udev.static block
smirnow:~ # ACTION≠d DEVPATH=/block/loop6 strace -ttfo bar /sbin/udev block
smirnow:~ # sed '1p;$p;d' foo
19136 17:32:36.351024 execve("/sbin/udev.static", ["/sbin/udev.static", "block"], [/* 50 vars */]) = 0
19136 17:32:40.771209 _exit(0) = ?
smirnow:~ # sed '1p;$p;d' bar
19138 17:32:45.674232 execve("/sbin/udev", ["/sbin/udev", "block"], [/* 50 vars */]) = 0
19138 17:32:45.877024 exit_group(0) = ?
0.2 vs. 4.4 seconds.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÃk
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: reading config files with klibc slow
2004-03-12 16:41 reading config files with klibc slow Olaf Hering
@ 2004-03-12 17:06 ` Kay Sievers
2004-03-12 17:19 ` Olaf Hering
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2004-03-12 17:06 UTC (permalink / raw)
To: linux-hotplug
On Fri, 2004-03-12 at 17:41, Olaf Hering wrote:
> fgets from klibc does a read for each single char, which makes it a bit
> slow.
Yes ,I noticed this too with a strace.
I prefer a klibc change, but you may ask klibc@zytor.com,
maybe hpa has any reason to do it one by one.
thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: reading config files with klibc slow
2004-03-12 16:41 reading config files with klibc slow Olaf Hering
2004-03-12 17:06 ` Kay Sievers
@ 2004-03-12 17:19 ` Olaf Hering
1 sibling, 0 replies; 3+ messages in thread
From: Olaf Hering @ 2004-03-12 17:19 UTC (permalink / raw)
To: linux-hotplug
On Fri, Mar 12, Kay Sievers wrote:
> On Fri, 2004-03-12 at 17:41, Olaf Hering wrote:
> > fgets from klibc does a read for each single char, which makes it a bit
> > slow.
>
> Yes ,I noticed this too with a strace.
>
> I prefer a klibc change, but you may ask klibc@zytor.com,
> maybe hpa has any reason to do it one by one.
I have looked at the glibc code, and they implement getline in some odd
but appearently good performing code.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÃk
_______________________________________________
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-12 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 16:41 reading config files with klibc slow Olaf Hering
2004-03-12 17:06 ` Kay Sievers
2004-03-12 17:19 ` Olaf Hering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).