Re: adjusting lowmem_reserve_ratio on an embedded system?

From: KAMEZAWA Hiroyuki
Date: Wed Jul 01 2009 - 21:44:24 EST


On Wed, 1 Jul 2009 14:23:52 +0200
Daniel Kabs <daniel.kabs@xxxxxx> 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.
>
>
> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/