Re: pgd_free, pmd_free, and pte_free trapping memory.

From: Jack Steiner <>
Date: 2004-03-18 03:20:16
> > 
> >   Robin> The page zeroing costs 4uSec per page (I believe that is the
> >   Robin> number).  With a typical fork taking approx 40 pages, that
> >   Robin> should be felt during an Aim7 run.  It looks like caches are
> >   Robin> masking some of that out.
> > 
> > Try UP.  Also, what if the page-size is 64KB?  In any case, 4usec is a
> > lot.
> I got the 4uSec from Jack Steiner.  I don't know if he tested it with
> 64KB pages.  I will check.

I see the following times for the kernel "clearpage" routine. I run this
code in user space but I use the kernel assembly code for clearing pages.
AFAICT, the timing should be identical to running it in the kernel.

The test harness ensures that the timing is done with warm TLBs & cold 
cache (data not in cpu caches):

	 3.1 usec 16K node local memory
	 6.1 usec 16K remote memory

	12.5 usec 64K node local memory
	24.5 usec 64K remote memory

I ran this on Itanium 2 1300MHz cpus. However, processor core speed does
not significantly affect timings since most time is spent waiting for 
off chip memory access.

Also, timing will obviously vary across different platforms.


Jack Steiner (          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed Mar 17 11:22:58 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST