WebFaction
Community site: login faq
0
1

I read the blog post on - Fair shared hosting done using cgroups in webfaction. Impressive !

This is a follow-up question -

  • Are processes always kept in memory?

  • How do you handle long-running processes?

  • How do you handle processes that are inactive fom a long-time?

  • How much virtual-memory is available/process?

  • How much swappable memory is available/account?

asked 30 Apr '12, 11:47

Prajwal
10622230
accept rate: 33%

edited 30 Apr '12, 11:48


Q: Are processes always kept in memory?

A: It depends on the process, you should check with 'ps'

Q: How do you handle long-running processes?

A: We handle them the same as short running ones, as long as they do not use 99% CPU and stay within their memory limit we do nothing.

Q: How do you handle processes that are inactive fom a long-time?

A: We don't monitor for this, since it does not really impact RAM, disk or CPU usage in a way that matters.

Q: How much virtual-memory is available/process?

Q: How much swappable memory is available/account?

A: Virtual memory/swap is pretty much the same thing on linux, and its regulated by the operating system.

The memory statistic you have to be worried about is 'rss' or redundant set size memory which is calculated by the 'ps' utility. You can use these 2 commands to get more info,

ps -u user -o rss,command | grep -v peruser | awk '{sum+=$1} END {print sum/1024}' 
ps -u user -o rss,command

The first shows total RAM use in MBs and the second shows the process and bytes per process.

permanent link

answered 30 Apr '12, 17:29

johns
5.4k412
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×87
×10
×2

question asked: 30 Apr '12, 11:47

question was seen: 2,943 times

last updated: 30 Apr '12, 17:29

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM