ASU - out of memory?
Carsten Haitzler (The Rasterman)
raster at openmoko.org
Mon Aug 25 03:52:09 CEST 2008
On Fri, 22 Aug 2008 16:53:15 +0200 Clemens Kirchgatterer <clemens at 1541.org>
> Carsten Haitzler (The Rasterman) <raster at openmoko.org> wrote:
> > > Problem is, your might not have the memory to trawl those .desktop
> > > files.
> > thus my original "write a root daemon - setsched() to realtime
> > priority and mlock() memory space down! (and of course read every
> > page of memory to make sure it's paged in) :)
> from man mlock:
> mlock() locks pages in the address range starting at addr and
> continuing for len bytes. All pages that contain a part of the
> specified address range are guaranteed to be resi‐ dent in RAM when the
> call returns successfully; the pages are guaranteed to stay in RAM
> until later unlocked.
> so reading every page seams unnessesary to me.
aaah yes. that saves the read :)
Carsten Haitzler (The Rasterman) <raster at openmoko.org>
More information about the community