Machine resources distribution

Does Webmin/Virtualmin distributes resources of the machine in any way? Can I allocate more resources to particular websites?

What is the best value (number )for PHP_FCGI_CHILDREN?

Status: 
Closed (fixed)

Comments

No, Virtualmin doesn't really have a way to distribute machine resources (other than disk quotas). You can impose some limits on a per-process basis for domains at Administration Options -> Edit Resource Limits.

The best value for number of PHP children depends on how many concurrent PHP web requests your site expects to serve. Increasing it will make the site more responsive under load, but use more RAM.

Ilia's picture
Submitted by Ilia on Sun, 03/24/2013 - 13:29

I have 64GB of RAM on 2x CPU Intel Xeon E5-2630 with 600 GB SSD & 8 TB HDD?

Around 10 site in total with resource occupation:

70 % of load for site #1

20% of load for site #2

and the rest, all together is about 10%



What would be the best value of PHP_FCGI_CHILDREN for 1, 2 and all the rest?

I would set it to 10 for site 1, 3 for site 2, and 1 for all the rest.

Ilia's picture
Submitted by Ilia on Sun, 03/24/2013 - 16:12

Thanks! Is it ok if I put for the big site 32? How is it calculated? 256mb for 1 process?

The memory used per process is hard to calculate, as it depends on the web app you are running, and the amount of sharing that can be done between processes. You have to experiment and see.