qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Translation cache sizes
@ 2006-04-08  3:13 Julian Seward
  2006-04-08  6:30 ` Mulyadi Santosa
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Julian Seward @ 2006-04-08  3:13 UTC (permalink / raw)
  To: qemu-devel


Using qemu from cvs simulating x86-softmmu (no kqemu) on x86,
booting SuSE 9.1 and getting to the xdm (kdm?) graphical login
screen, requires making about 1088000 translations, and the
translation cache is flushed 17 times.  Booting is not too bad,
but once user-mode starts to run the translation cache is pretty
much hammered.

I made 2 changes: 

* increase CODE_GEN_BUFFER_SIZE from 16*1024*1024
  to 64*1024*1024, 

* observe that CODE_GEN_AVG_BLOCK_SIZE of 128
  for the softmmu case is too low; my measurements put it
  at about 247.  So I changed it to 256.

With those changes in place, the same boot-to-kdm process 
requires only about 570000 translations to be made, and 2 
cache flushes to happen.  Of course the cost is an extra
48M of memory use.

J

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

end of thread, other threads:[~2006-04-08 13:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-08  3:13 [Qemu-devel] Translation cache sizes Julian Seward
2006-04-08  6:30 ` Mulyadi Santosa
2006-04-08 10:27   ` Johannes Schindelin
2006-04-08 12:43 ` Gwenole Beauchesne
2006-04-08 13:10   ` Paul Brook
2006-04-08 13:16 ` Paul Brook

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