From: "dada1" <dada1@cosmosbay.com>
To: <linux-kernel@vger.kernel.org>
Subject: Fw: 2.5.64-mm6
Date: Thu, 13 Mar 2003 13:28:47 +0100 [thread overview]
Message-ID: <04d701c2e95c$18ac6710$0a000043@edumazet> (raw)
> This means that when an executable is first mapped in, the kernel will
> slurp the whole thing off disk in one hit. Some IO changes were made to
> speed this up.
>
> This means that large cache-cold executables start significantly faster.
> Launching X11+KDE+mozilla goes from 23 seconds to 16. Starting
OpenOffice
> seems to be 2x to 3x faster, and starting Konqueror maybe 3x faster too.
> Interesting.
Sounds nice indeed.
Do you think we could try to use 4Mo pages instead of 4Ko to map some
libraries/executables ?
libc.so could be linked to align text to a 4Mo boundary, and to set a an ELF
marker to tell the kernel/loader to try to use
HugeTLB page to map the text portion. The space wasted (the current glibc
use about 2Mo instead of 4Mo) is neglictable if the same page is used for
all processes in the machine...
HPUX11 has a chattr command that can mark binaries to use BigPages (for text
pages or data pages). We could 'mark' big programs with an ELF attribute to
ask for the behavior you describe (force the load of all the mapped portion
at mmap time) or/and to try to use HugeTLBPages...
Eric
reply other threads:[~2003-03-13 12:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='04d701c2e95c$18ac6710$0a000043@edumazet' \
--to=dada1@cosmosbay.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®