lkml.org 
[lkml]   [2002]   [Jan]   [25]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 26 Jan 2002 03:45:59 +0000
FromJamie Lokier <>
SubjectRe: [ACPI] ACPI mentioned on lwn.net/kernel
Dan Maas wrote:
> This may be true for environments where people mostly run a handful of
> monolithic applications (*ahem* windows) but look at typical Linuxy things
> like:
> 
> make (compiler, assembler, linker processes...)
> forking servers (Apache 1.x...)
> *./configure scripts* (a big one!!!)
> etc...
> 
> Startup cost is likely to be a big factor here...

Btw, a little story about startup times and Linux.

I once wrote a Perl script that needed to know the current directory.
It did:

   use POSIX 'getcwd'
   getcwd(...)

After a few months, I was annoyed by the slowness of this script
(compared with other scripts) and decided to try speeding it up.  It
turns out that the above two lines took about 0.25 of a second, and that
was the dominant running time of the script.

I replaced getcwd() with `/bin/pwd`.  Lo!  It took about 0.0075 second.

Says very good things about Linux' fork, exec and mmap times, and about
Glibc's dynamic loading time, I think.

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:15    [from the cache]
©2003-2008