RE: Correctly determine amount of "free memory"

From: Gregory Giguashvili
Date: Mon Dec 06 2004 - 11:05:44 EST


> On the side, it would not hurt to study 'overcommit' and mlock(2). The
answer to your question is > not static unless care is taken.
I'm using mlock(2), but the problem is that I need to allocate as much
memory as possible without causing swapping, so I need to have _rough_
estimate before actually allocating the memory.

Thanks,
Giga
-
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/