Re: memory_save patch

Bill Currie (bill@taniwha.tssc.co.nz)
Mon, 11 Jan 1999 22:12:55 +1300


Max wrote:
> So I came out with this patch, which, despite being tiny,
> saves 4kb for every 2Mb of physical RAM.
> On my 16Mb box this means the kernel uses 32kb less memory,
> and on a typical 64Mb Intel you save 128kb.
> It is not exactly little, considering that the `init' memory added in 2.1
> normally saves 20-40kb of memory.

Although I haven't tried this patch out, it *looks* like it will even
speed the kernel up fractionally as you have changes several memory
references to either a reg minus reg or reg minus const (I don't know
the nature of `mem_map': array or pointer).

Bill

-- 
Leave others their otherness.

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