From: Michel Lanners <mlan@cpu.lu>
To: linuxppc-dev@lists.linuxppc.org
Subject: zeroing pages in the idle task?
Date: Tue, 12 Sep 2000 22:18:48 +0200 (CEST) [thread overview]
Message-ID: <200009122018.WAA00786@piglet.grunz.lu> (raw)
Hi all,
I've come across a 'forgotten' feature of the PPC kernels: namely
zeroing pages 'in advance' in the idle task.
It's a feature Cort implemented some time ago, but which is disabled by
default. I've tried to enable it:
[root@piglet ~]# echo 1 > /proc/sys/kernel/zero-paged
and it seems to work OK:
(this is after system boot, no apps started yet except 3 xterms)
[mlan@piglet ~]$ cat /proc/cpuinfo
processor : 0
cpu : 750
temperature : 0 C
clock : 195MHz
^^^^^^
(by the way, this is wrong. Anybody with a fix?)
revision : 2.2
bogomips : 575.08
zero pages : total 264 (1056Kb) current: 96 (384Kb) hits: 168/255 (65%)
machine : Power Macintosh
motherboard : AAPL,7500 MacRISC
memory : 112MB
pmac-generation : OldWorld
So, a few questions:
- is there any problem with using this feature?
- if not, would it be a good idea to enable it by default?
- or, would it be better to add it to rc.sysinit, leaving it to each
distribution whether to enable it or not?
I've not benchmarked anything (how would one do that?); but it seems to
me it's a no-cost optimisation. Even if there's little advantage, since
it's for free...
Comments?
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next reply other threads:[~2000-09-12 20:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-12 20:18 Michel Lanners [this message]
2000-09-13 3:46 ` zeroing pages in the idle task? Paul Mackerras
2000-09-13 6:08 ` Michel Lanners
2000-09-13 10:45 ` Benjamin Herrenschmidt
2000-09-13 7:13 ` Takashi Oe
2000-09-13 16:23 ` David A. Gatwood
2000-09-13 19:32 ` Geert Uytterhoeven
2000-09-15 2:28 ` ld bug? Takashi Oe
2000-09-15 3:00 ` Kaoru Fukui
2000-09-15 3:16 ` Paul Mackerras
2000-09-15 3:44 ` Takashi Oe
2000-09-15 2:35 ` zeroing pages in the idle task? Takashi Oe
2000-09-15 4:50 ` Timothy A. Seufert
2000-09-15 13:50 ` Holger Bettag
2000-09-15 15:29 ` Michael Schmitz
2000-09-15 15:30 ` Takashi Oe
2000-09-15 10:49 ` Geert Uytterhoeven
2000-09-26 10:18 ` Gabriel Paubert
2000-09-13 19:51 ` Michel Lanners
2000-09-14 4:21 ` Cort Dougan
2000-09-14 4:44 ` Paul Mackerras
2000-09-18 14:26 ` Adrian Cox
2000-09-18 14:41 ` Benjamin Herrenschmidt
2000-09-18 14:58 ` Adrian Cox
2000-09-18 17:56 ` Matt Porter
2000-09-26 10:38 ` Gabriel Paubert
2000-09-27 5:24 ` Paul Mackerras
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=200009122018.WAA00786@piglet.grunz.lu \
--to=mlan@cpu.lu \
--cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).