php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70605 Option to attach a pool to a cgroup
Submitted: 2015-09-30 09:37 UTC Modified: 2017-04-10 18:56 UTC
Votes:3
Avg. Score:3.0 ± 1.4
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: framelio at gmail dot com Assigned: bukka (profile)
Status: Assigned Package: FPM related
PHP Version: 7.0.0 OS: Unix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: framelio at gmail dot com
New email:
PHP Version: OS:

 

 [2015-09-30 09:37 UTC] framelio at gmail dot com
Description:
------------
Would be nice to have the possibility to attach a PHP pool to a Control Group (kernel feature).

This will allow to set cpu, io, memory limits at kernel level.

https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-01 11:33 UTC] framelio at gmail dot com
-PHP Version: 7.0.0RC3 +PHP Version: 7.0.0
 [2015-10-01 11:33 UTC] framelio at gmail dot com
Another nice feature would be to attach the pool to a namespace with setns().

This would allow a safer chroot environment.
 [2017-04-10 18:56 UTC] bukka@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bukka
 [2017-04-10 18:56 UTC] bukka@php.net
It's currently discussed in

https://github.com/php/php-src/pull/2440

I have some interest in it so assigning myself...
 [2020-12-19 18:35 UTC] martynas at martynas dot it
Is support for linux namespaces and cgroupsv2 still planned? At this time it's required to start php-fpm process per-user to get them into user slices (and get the limitations in effect), this adds lots of overhead...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 08:01:29 2024 UTC