LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-28-2011, 01:28 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Hugepages exepriment: Triggering large page tables


Hi all,

I’m learning about linux memory and hugepages, and know that hugepages basically is just memory that manages memory. I thought I’d experiment with the subject, and wrote a very small C program (http://pastie.org/1606226) that basically just eats 20 GB of memory. The idea was that I would use this small C program to see how big the page table would get when handling large areas of memory when I'm not using hugepages.

After running the program on my RHEL 5 server I was expecting the PageTable to be huge, but found that it was only about 43 MB. The page size on my RHEL box i 4 kB.

Can someone here please help me clear up why I’m not getting the major PageTable size issue I was expecting?

Greetings,
kenneho
 
Old 03-01-2011, 10:11 AM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I'm curious how you measured the page table size. But your results seem reasonable.

In x86_64 architecture the hardware portion of the page table data requires 2092KB of page tables for every GB of populated virtual address space.

That is roughly equal to what you reported.

There is also a significant software only component to the structure. I don't know how big that is, but I think it is big enough that it must not be included in the value you measured.
 
Old 03-04-2011, 12:59 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by johnsfine View Post
I'm curious how you measured the page table size. But your results seem reasonable.

In x86_64 architecture the hardware portion of the page table data requires 2092KB of page tables for every GB of populated virtual address space.

That is roughly equal to what you reported.

There is also a significant software only component to the structure. I don't know how big that is, but I think it is big enough that it must not be included in the value you measured.
I simply used the page table size reported in /proc/meminfo (IIRC the field is called "PageTable"). The system was lightly loaded to start with, so most of the page table is filled with entries related to the small program I wrote.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql ibdata1 is very large 95% drive in use - dropped tables but size ibdata remains guest Linux - Server 2 03-20-2009 12:53 PM
large interface tables patch alex_anagran Linux - Networking 0 11-08-2005 02:10 PM
Large page NAND Flash support chandu123 Linux User Groups (LUG) 3 09-24-2005 12:09 PM
large routing tables dunkyb Linux - Networking 10 04-26-2003 03:06 PM
linux kernel: large routing tables dunkyb Linux - Software 0 02-19-2003 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration