public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.32-rc3: low mem - only 378MB on x86_32 with 64GB. Why?
@ 2009-10-05 15:57 Jeff Chua
  2009-10-05 18:12 ` Linus Torvalds
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Jeff Chua @ 2009-10-05 15:57 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Linus Torvalds, Andrew Morton, Hugh Dickins



I've 3 systems with 4GB, 16GB and 64GB all running 32bit with these set:

 	CONFIG_X86_32=y
 	CONFIG_X86=y
 	CONFIG_ZONE_DMA=y
 	# CONFIG_ZONE_DMA32 is not set
 	CONFIG_SPARSEMEM_MANUAL=y
 	CONFIG_SPARSEMEM=y
 	CONFIG_HIGHMEM64G=y
 	CONFIG_HIGHMEM=y
 	CONFIG_X86_PAE=y
 	CONFIG_KSM=y
 	CONFIG_HIGHPTE=y


# using "free -lm" ...

# with 4GB
              total       used       free     shared    buffers     cached
Mem:          3983       3862        120          0        112       3542
Low:           850        738        112
High:         3132       3123          8
-/+ buffers/cache:        207       3775
Swap:         8008          0       8008


# with 16GB
              total       used       free     shared    buffers     cached
Mem:         16244       6570       9673          0        320       5559
Low:           750        717         33
High:        15493       5853       9640
-/+ buffers/cache:        690      15554
Swap:        26709          0      26709


# with 64GB
              total       used       free     shared    buffers     cached
Mem:         63995        524      63470          0          4        365
Low:           378         32        345
High:        63616        492      63124
-/+ buffers/cache:        154      63840
Swap:        28003          0      28003


Question is ... is there anyway to increase "low mem" without resorting to 
migrating to 64bit? (Look... it only has 378MB total low mem vs 850MB on 
the 4GB system). I've oracle installed on the 64GB system and it keeps 
getting OOMs!

I thought CONFIG_HIGHPTE (Allocate 3rd-level pagetables from highmem) is 
supposed to help with low mem as stated here ...

  CONFIG_HIGHPTE:
 	The VM uses one page table entry for each page of physical memory.
 	For systems with a lot of RAM, this can be wasteful of precious
 	low memory.  Setting this option will put user-space page table
 	entries in high memory.


Anything I should do? Slow death using sysctl like this ...
 	vm.min_free_kbytes = 16384
 	vm.overcommit_memory = 2
 	vm.overcommit_ratio = 75
 	vm.vfs_cache_pressure = 10000


Thanks,
Jeff.

P.S.  I was trying to "cross-compile" a gcc compiler, but didn't get far. 
That's a different topic ... offline, please write to me directly if 
you've done this ... would need binutil 64 (compile ok), gcc 64 (stucked 
... seems to be looking for libc 64bit) ...

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: 2.6.32-rc3: low mem - only 378MB on x86_32 with 64GB. Why?
@ 2009-10-05 19:42 Tomasz Chmielewski
  2009-10-05 20:31 ` Valdis.Kletnieks
  0 siblings, 1 reply; 21+ messages in thread
From: Tomasz Chmielewski @ 2009-10-05 19:42 UTC (permalink / raw)
  To: linux-kernel

> Heh.  You've really squeezed yourself into a bad situation.  Go get a
> 64-bit kernel... please.  You should be able to run 32-bit userspace
> with a 64-bit kernel.  Do you have some 32-bit kernel component that you
> are relying on?

Note that in such setups (64 bit kernels and 32 bit userspace) *some* 
software will not work correctly (perhaps it's limited to tightly 
kernel-userspace integrated software).

One example is open-iscsi - you won't run 32 bit open-iscsi userspace on 
a 64 bit kernel (at least it was impossible a couple of months ago).


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 21+ messages in thread
[parent not found: <drYiu-Pj-15@gated-at.bofh.it>]

end of thread, other threads:[~2009-10-14 21:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-05 15:57 2.6.32-rc3: low mem - only 378MB on x86_32 with 64GB. Why? Jeff Chua
2009-10-05 18:12 ` Linus Torvalds
     [not found]   ` <b6a2187b0910051715y4ee63503y148ba2d7e24cad8e@mail.gmail.com>
2009-10-06  0:30     ` Linus Torvalds
2009-10-06 10:06       ` Tvrtko Ursulin
2009-10-06 11:01         ` Frans Pop
2009-10-14 21:32           ` Lennart Sorensen
2009-10-06 12:59       ` David Woodhouse
2009-10-06 14:26         ` Linus Torvalds
2009-10-11  9:08           ` Benjamin Herrenschmidt
     [not found]       ` <b6a2187b0910052312o662642b2teded3d19548b9151@mail.gmail.com>
2009-10-06 14:35         ` Linus Torvalds
     [not found]           ` <b6a2187b0910080926x303d3c9em8f70632fb19b6509@mail.gmail.com>
2009-10-08 16:35             ` Dave Hansen
     [not found]           ` <b6a2187b0910090928r648169dax86178a3e8b8c2f21@mail.gmail.com>
2009-10-10 18:10             ` Valdis.Kletnieks
2009-10-10 18:37               ` Linus Torvalds
2009-10-11  9:06           ` Benjamin Herrenschmidt
2009-10-11 17:34             ` Linus Torvalds
2009-10-06 16:50   ` Yuhong Bao
2009-10-05 18:42 ` Byron Stanoszek
2009-10-05 19:15 ` Dave Hansen
  -- strict thread matches above, loose matches on Subject: below --
2009-10-05 19:42 Tomasz Chmielewski
2009-10-05 20:31 ` Valdis.Kletnieks
     [not found] <drYiu-Pj-15@gated-at.bofh.it>
2009-10-05 20:05 ` Daniel J Blueman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox