RE: Extermeley large PageTables over 500G on kernel 2.6.32.49(SLES11 SP1)

From: Borzenkov, Andrey
Date: Wed Jan 11 2012 - 05:52:44 EST




> -----Original Message-----
> From: Eric Dumazet [mailto:eric.dumazet@xxxxxxxxx]
> Sent: Wednesday, January 11, 2012 2:37 PM
> To: Borzenkov, Andrey
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: Extermeley large PageTables over 500G on kernel 2.6.32.49
> (SLES11 SP1)
>
> Le mercredi 11 janvier 2012 Ã 11:18 +0100, Borzenkov, Andrey a Ãcrit :
>
> > What can be the reason for system consuming half of physical memory for
> page tables?
> >
>
> Why dont you use hugepages to map oracle SGA ?
>

Colleagues responsible for Oracle are reconfiguring it now.

> If not, its normal to eat so much memory for page tables
>
> grep VmPTE /proc/*/status
>
>

Forgive my ignorance. I thought that

1. PTE is 8 bytes per page, which is 4K which gives 2K per 1M of memory
2. All processes sharing the same shared memory share the same page table

So page table for Oracle SGA 500G would be around 1G and shared by all Oracle clients. Is my assumption incorrect?
¢éì®&Þ~º&¶¬–+-±éÝ¥Šw®žË±Êâmébžìdz¹Þ)í…æèw*jg¬±¨¶‰šŽŠÝj/êäz¹ÞŠà2ŠÞ¨è­Ú&¢)ß«a¶Úþø®G«éh®æj:+v‰¨Šwè†Ù>Wš±êÞiÛaxPjØm¶Ÿÿà -»+ƒùdš_