linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* zeroing pages in the idle task?
@ 2000-09-12 20:18 Michel Lanners
  2000-09-13  3:46 ` Paul Mackerras
  2000-09-13 19:51 ` Michel Lanners
  0 siblings, 2 replies; 27+ messages in thread
From: Michel Lanners @ 2000-09-12 20:18 UTC (permalink / raw)
  To: linuxppc-dev


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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2000-09-27  5:24 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-12 20:18 zeroing pages in the idle task? Michel Lanners
2000-09-13  3:46 ` 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

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).