From: Diego Calleja <diegocg@gmail.com>
To: Dave Jones <davej@redhat.com>
Cc: rlrevell@joe-job.com, akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: dmesg verbosity [was Re: AGP bogosities]
Date: Wed, 23 Mar 2005 15:10:36 +0100 [thread overview]
Message-ID: <20050323151036.2b41b9ae.diegocg@gmail.com> (raw)
In-Reply-To: <20050323011313.GL15879@redhat.com>
El Tue, 22 Mar 2005 20:13:15 -0500,
Dave Jones <davej@redhat.com> escribió:
> With something like this, and some additional bookkeeping to keep track of
> which files we open in the first few minutes of uptime, we could periodically
> reorganise the layout back to an optimal state.
That wouldn't be too hard (a libc wrapper could do it, right?) But how could you get
track of "code page faults"? Perhaps it's not worth of it "preloading" the parts of the
executable (and linked libraries) used and it's much simpler to read everything? (Andrew
Morton suggested in the past using mincore(2) IIRC)
Altought even if you optimize the disk's layout and pre-read everything you need, a big
problem is the initscript scripts. I don't think it's init fault, handling absolutely _everything_
trough scripts is not going to help, specially when all^Wmost of linux systems use a
shell which claims to be "too big and too slow" in its own man page ;)
There're some shells (like zsh) which can "compile" scripts and generate "bytecode"
I wonder if that would help (zsh seems to handle bash scripts so it may be interesting
to try) Although like many people suggested, microsoft's "magic wand" to speed up
everything could have been "lets save a suspend image of the system just before
detecting new non-critical hardware and use it to boot the system". I guess its not
possible to save/load suspend images to/from a filesystem?
So, a list of steps needed (which doesn't means I'm voluntering to do all of them 8) could
be:
1- Be able to keep track of what a process does in its whole life, or in the first N
seconds (optimizing system's startup it's nice, but being able to speed up how
fast openoffice loads when the system is already up would be even better).
Using LD_PRELOAD=/something command could do this?
2- Get the on-disk info, port Andrew Morton's "move block" patch to 2.6, and use it
to reorganize the disk's layout periodically (specially when package managers install
something, ie: if people runs mozilla very often, mozilla files should be kept in the same
place of the disk than all its libraries), using stadistics from step 1
3 - Create a tool which looks at all the data got from step 1 and "preloads" optimally from
disk all the neccesary data (ie: using the path of one program, or several if you want
to run two programs at the same time), with the reorganization done in step 2 it'd be
even faster. Boot scripts would be just another user, and gnome and kde could use it
too for single programs. If the tool detects that a program has been changed (looking
at the "changed date" field for example) it could launch the process with the tools from
step 1, so the stadistics get regenerated again.
Is there something crazy in this idea?
next prev parent reply other threads:[~2005-03-23 14:12 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-11 1:24 AGP bogosities Paul Mackerras
2005-03-11 2:04 ` Jesse Barnes
2005-03-11 2:11 ` Paul Mackerras
2005-03-11 2:18 ` Jesse Barnes
2005-03-11 2:38 ` Benjamin Herrenschmidt
2005-03-11 4:02 ` Jesse Barnes
2005-03-11 4:30 ` Benjamin Herrenschmidt
2005-03-11 16:39 ` Jesse Barnes
2005-03-11 17:59 ` Bjorn Helgaas
2005-03-11 18:04 ` Jesse Barnes
2005-03-12 3:27 ` Mike Werner
2005-03-12 3:58 ` Dave Jones
2005-03-13 3:13 ` Jesse Barnes
2005-03-13 4:08 ` Dave Jones
2005-03-13 4:28 ` Dave Jones
2005-03-11 22:43 ` Paul Mackerras
2005-03-11 23:22 ` Bjorn Helgaas
2005-03-12 0:12 ` Benjamin Herrenschmidt
2005-03-12 1:34 ` Paul Mackerras
2005-03-11 18:04 ` James Simmons
2005-03-11 18:08 ` Jesse Barnes
2005-03-11 2:04 ` Linus Torvalds
2005-03-11 2:12 ` Dave Jones
2005-03-11 2:18 ` Paul Mackerras
2005-03-11 2:23 ` Dave Jones
2005-03-11 2:40 ` Benjamin Herrenschmidt
2005-03-11 2:49 ` Dave Jones
2005-03-12 20:49 ` Greg KH
2005-03-11 2:42 ` Linus Torvalds
2005-03-11 22:18 ` OGAWA Hirofumi
2005-03-11 22:26 ` Dave Jones
2005-03-11 22:33 ` Chris Wedgwood
2005-03-11 23:52 ` Gene Heskett
2005-03-11 22:44 ` Linus Torvalds
2005-03-11 23:09 ` Paul Mackerras
2005-03-12 0:06 ` Gene Heskett
2005-03-14 8:17 ` Pavel Machek
2005-03-14 8:27 ` David Lang
2005-03-14 8:37 ` dmesg verbosity [was Re: AGP bogosities] Pavel Machek
2005-03-14 16:55 ` Jesse Barnes
2005-03-14 17:03 ` Pavel Machek
2005-03-14 17:17 ` Dave Jones
2005-03-14 17:18 ` Linus Torvalds
2005-03-14 17:27 ` Jesse Barnes
2005-03-14 17:27 ` Pavel Machek
2005-03-15 20:18 ` Greg Stark
2005-03-14 18:12 ` Diego Calleja
2005-03-14 19:07 ` Lee Revell
2005-03-20 6:44 ` David Lang
2005-03-23 0:37 ` Diego Calleja
2005-03-23 0:53 ` Lee Revell
2005-03-23 1:13 ` Dave Jones
2005-03-23 1:29 ` Andrew Morton
2005-03-23 8:21 ` Giuseppe Bilotta
2005-03-23 16:14 ` Dave Jones
2005-03-23 16:49 ` Giuseppe Bilotta
2005-03-23 17:17 ` Dave Jones
2005-03-23 14:10 ` Diego Calleja [this message]
2005-03-23 8:19 ` Giuseppe Bilotta
2005-03-30 9:45 ` Pavel Machek
2005-03-23 0:53 ` Zan Lynx
2005-03-23 0:55 ` Grant Coady
2005-03-14 21:55 ` Benjamin Herrenschmidt
2005-03-14 22:08 ` David Lang
2005-03-15 0:02 ` Pavel Machek
2005-03-11 22:42 ` AGP bogosities Dmitry Torokhov
2005-03-11 22:47 ` Dmitry Torokhov
2005-03-12 17:09 ` Linus Torvalds
2005-03-12 22:26 ` OGAWA Hirofumi
2005-03-12 22:34 ` Linus Torvalds
2005-03-11 2:35 ` Benjamin Herrenschmidt
2005-03-11 2:43 ` Dave Jones
2005-03-11 2:37 ` Linus Torvalds
2005-03-11 22:11 ` J.A. Magallon
2005-03-11 22:18 ` Dave Jones
2005-03-11 22:46 ` J.A. Magallon
2005-03-11 23:16 ` Martin Schlemmer
2005-03-11 23:17 ` J.A. Magallon
2005-03-11 23:23 ` Martin Schlemmer
2005-03-11 23:24 ` J.A. Magallon
-- strict thread matches above, loose matches on Subject: below --
2005-03-30 10:19 dmesg verbosity [was Re: AGP bogosities] tvrtko.ursulin
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=20050323151036.2b41b9ae.diegocg@gmail.com \
--to=diegocg@gmail.com \
--cc=akpm@osdl.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rlrevell@joe-job.com \
/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