[Nottingham] Limiting process physical memory - how?

Roger Light roger at atchoo.org
Mon Jun 10 14:58:58 UTC 2013


Hi Martin,

I think cgroups should do what you want:

https://wiki.archlinux.org/index.php/Cgroups

Note the line "Note that the memory limit applies to RAM use only --
once tasks hit this limit, they will begin to swap. But it won't
affect the performance of other processes significantly."

Cheers,

Roger

On Mon, Jun 10, 2013 at 3:46 PM, Martin <martin at ml1.co.uk> wrote:
> Folks,
>
> A Geekie one...
>
> I've a humongous process that is gobbling up all physical memory to
> bring this machine to a crawl. There's more than enough virtual memory
> for it but:
>
>
> How do I limit how much physical memory it grabs so as not to freeze out
> everything else?
>
> How can I limit the rate of memory swap so that the HDD isn't thrashed
> to a crawl?
>
>
> (I've done a "kill -s STOP pid" for the moment to temporarily halt it.
> All is non-treacle again but how to stop it going to treacle again?)
>
> Ideas?
>
> Cheers,
> Martin
>
>
> --
> - ------------------ - ----------------------------------------
> -    Martin Lomas    - OpenPGP (GPG/PGP) Public Key: 0xCEE1D3B7
> - martin @ ml1 co uk - Import from   hkp://subkeys.pgp.net   or
> - ------------------ - http:// ml1 .co .uk/martin_ml1_co_uk.gpg
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham



More information about the Nottingham mailing list