User: Password:
Subscribe / Log in / New account

Process containers

Process containers

Posted May 31, 2007 22:24 UTC (Thu) by socket (subscriber, #43)
Parent article: Process containers

I must admit, this is more abstract than usual. I think the other two comments suggest that it's not really clear what exactly these are containers are *for*. Can someone give me an example of how such containers could be used? I'm confused.

(Log in to post comments)

Process containers

Posted May 31, 2007 23:34 UTC (Thu) by i3839 (guest, #31386) [Link]

They key point is:

> Other (not yet existing) subsystems could use containers to enforce
> limits on CPU time, I/O bandwidth usage, memory usage, filesystem
> visibility, and so on. Containers are hierarchical, in that one
> container can hold others.

Right now all resource management is done globally or per process/thread, but not much else. Process containers make it possible to group a bunch of processes and do resource allocation for them as a group (think ulimit, but more). What resource that is doesn't matter right now, as this article is about the basic infrastructure which is put into place to make everything possible.

This is useful for multi-purpose and multi-user machines. E.g. if you want your server to spend 50% of its CPU time, disk IO and/or memory on the webserver and a database, 25% on finding aliens, and the rest for reading LWn, it can be done.

It seems it can also function as a sort of jail, limiting the fs and process namespace view/access processes have.

(I might be mixing multiple things though.)

Process containers

Posted Jun 5, 2007 14:40 UTC (Tue) by vMeson (subscriber, #45212) [Link]

an industrial use case:
let's say you are a network infrastructure vendor,
you'd like to allocate 60% of cpu to processing packets for existing work, 10 % for handling new work, 10% for system maintenance, 10% for I/O, and 10% for spying^Hlawful intercept. ;-) The missing bit is how these containers or classes interact. Is system maintenance more important than new work or do you have a policy of fairness?

Containers coupled to the new scheduler: CFS seem like a powerful combination.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds