[systemd-devel] Excessive (virtual) memory usage of journald

Holger Hans Peter Freyther holger at freyther.de
Fri Jun 21 04:42:43 PDT 2013


On Fri, Jun 21, 2013 at 12:29:56PM +0200, Kay Sievers wrote:

> What's the problem with using address *space*? Address space is not
> used memory, file memory mappings are just how things work in general,
> they are cheap and should not really matter.

It is a symptom of inefficiency. If an application maps 130MB of memory
to manage what should be a 648kb ringbuffer it raises some doubts. The
danger comes from the question if the journald will fragment its memory
in a way that a real memory allocation will fail because there is no space
left in the virtual address space.

The above concern would be easier to resolve if used and mapped memory
would be within reasonable bounds when managing just some kb of data.

holger




More information about the systemd-devel mailing list