You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
I suspect that's only possible if you make every user run in their own container. I think that wouldn't have any impact on performance, the difficulty would be the initial setup.Gilles 'SO- stop being evil'– Gilles 'SO- stop being evil'2016-03-08 22:46:21 +00:00Commented Mar 8, 2016 at 22:46
-
I'm not an expert, but I can ask people to help. With containers, will a lone user be able to use the whole machine? Are containers hard to set up? I was thinking of making OOM score adjustments according to user memory usage. Does that make sense?Gere– Gere2016-03-09 09:24:57 +00:00Commented Mar 9, 2016 at 9:24
-
I'm not an expert either. AFAIK the system keeps track of memory used by each container. You can set a limit per container, but you don't have to. The problem about “user memory usage” is that not only does Linux not keep track of it, but it isn't a well-defined notion, because memory can't be accounted per process: a lot of memory is used by multiple processes (in particular file cache). This is still true with containers but there is more separation so you get a more accurate picture (but not perfect).Gilles 'SO- stop being evil'– Gilles 'SO- stop being evil'2016-03-09 10:22:47 +00:00Commented Mar 9, 2016 at 10:22
-
The details aside, hard limits on memory isn't the solution here, since it would mean there are hard limits for users. I want users to have 50% when there are two users online and 100% if they are alone. This would be solved "naturally", by killing a processes from the greediest user, when memory runs out.Gere– Gere2016-03-09 12:02:50 +00:00Commented Mar 9, 2016 at 12:02
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. shell-script), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you