Discussion:
Using multiple page sizes
Kishore Kumar Pusukuri
2010-08-10 03:19:49 UTC
Permalink
I would like to see the impact of different page sizes on the performance of multi-threaded applications. However, the pagesize -a command is producing only 3 possible page sizes including the default 4Kb on my AMD machine (shown below). Are these only page sizes I can use? (or) Is there anyway I can use more than these?

***@opensolaris:~$ pagesize -a
4096
2097152
1073741824
--
This message posted from opensolaris.org
Darryl Gove
2010-08-10 03:45:05 UTC
Permalink
Post by Kishore Kumar Pusukuri
I would like to see the impact of different page sizes on the performance of multi-threaded applications. However, the pagesize -a command is producing only 3 possible page sizes including the default 4Kb on my AMD machine (shown below). Are these only page sizes I can use? (or) Is there anyway I can use more than these?
4096
2097152
1073741824
Hi,

x86 hardware typically only has a few page size options. You might want
to look at using cputrack/cpustat/performance analyzer to see if your
application is experiencing large numbers of TLB misses. If this is the
case, changing the page size may reduce them.

Regards,

Darryl.
--
Darryl Gove
Compiler Performance Engineering
Blog : http://blogs.sun.com/d/
Books: http://my.safaribooksonline.com/9780321711441
http://my.safaribooksonline.com/9780768681390
http://my.safaribooksonline.com/0595352510
Ruud van der Pas
2010-08-10 04:26:59 UTC
Permalink
x86 hardware typically only has a few page size options. You might want to look at using cputrack/cpustat/performance
analyzer to see if your application is experiencing large numbers of TLB misses. If this is the case, changing the page
size may reduce them.
Just want to add to this that you may want to check how many D-TLB
entries for large pages your processor supports. It used to be a
pretty low number on older x86 models.

If so, the benefit of using large pages could be rather limited.

Of course it is sill worth a try.

Kind regards, Ruud
---------------------------------------------------------------------
Senior Staff Engineer Email: ruud.vanderpas-xsfywfwIY+***@public.gmane.org
Oracle Developer Tools Phone: +31-33-4515000 (x15920)
Oracle Fax : +31-33-4515001
---------------------------------------------------------------------
Loading...