Hello.
On Tue, Nov 28, 2023 at 08:35:29AM +0200, Mantas Mikulėnas
wrote:
> 1) the limits are per-cgroup and the entire service is a single cgroup;
They could create own service unit for the DB with Delegate=cpu,io and
create a subtree manually.
> 2) the threads are created by mysqld,
That^^
On Tue, Nov 28, 2023 at 08:35:29AM +0200, Mantas Mikulėnas wrote:
> On Tue, Nov 28, 2023 at 8:27 AM jai wrote:
>
> > I am able to set cpulimit, iolimit, etc for a process using its pid
> > through cgroups v2. But for some threads of a single mysql process, how can
> > I achieve that?
> >
>
>
On Tue, Nov 28, 2023 at 8:27 AM jai wrote:
> I am able to set cpulimit, iolimit, etc for a process using its pid
> through cgroups v2. But for some threads of a single mysql process, how can
> I achieve that?
>
You cannot; 1) the limits are per-cgroup and the entire service is a single
cgroup;