Skip to contentSkip to conversation

adjusting lowmem_reserve_ratio on an embedded system?

DISCUSSION Daniel Kabs 2 participants 2 messages Jul 1, 2009 – Jul 2, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

in tracing a low on memory situation on an embedded system I came across the Documentation/sysctl/vm.txt. There it is advised to change the lowmem_reserve_ratio on systems running without swap.

I wonder if this applies for an embedded system running with 256MByte RAM and no swap which is using only one memory zone (ZONE_NORMAL)? I guess no.

To understand what the parameter means I read the relevant section from vm.txt and came across the terms "lowmem zone" and "lower zones" and "lowmem memory". I feel dumb. I could not find a concept of "lower zones" (or "upper" zones). What exactly do they mean?

Cheers
Daniel

#1 lore raw
Quoted 11 lines · On Wed, 1 Jul 2009 14:23:52 +0200 Daniel Kabs <[email protected]> wrote:

Hello,

in tracing a low on memory situation on an embedded system I came across the Documentation/sysctl/vm.txt. There it is advised to change the lowmem_reserve_ratio on systems running without swap.

I wonder if this applies for an embedded system running with 256MByte RAM and no swap which is using only one memory zone (ZONE_NORMAL)? I guess no.

Quoted 5 lines

To understand what the parameter means I read the relevant section from vm.txt and came across the terms "lowmem zone" and "lower zones" and "lowmem memory". I feel dumb. I could not find a concept of "lower zones" (or "upper" zones). What exactly do they mean?

Assume a system with HIGHMEM/NORMAL/DMA

zone fallback list is created as

	HIGHMEM->NORMAL->DMA

HIGHMEM's lower zone is NORMAL+DMA
NORMAL's lower zone is DMA.

"lowmem" often means NORMAL+DMA (yes, there are HIGHMEM) but it depends on context.

Regards,
-Kame