Re: [PATCH RFC 4/4] mitigations: Add flock cache accounting to 'mitigations=off'

From: Michal Koutný
Date: Thu Jan 18 2024 - 04:04:55 EST


On Wed, Jan 17, 2024 at 08:14:46AM -0800, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
> Allow flock cache accounting to be disabled with 'mitigations=off', as
> it fits the profile for that option: trusted user space combined with a
> performance-impacting mitigation.

Note that some other kernel objects that don't have any other tight
limit are already charged too (but their charging likely did not stand
out in any performance regression tests).
In the situation you describe, users can already pass
`cgroup.memory=nokmem` and get rid of charging overhead in general.

IOW, if flock objects are charged, there already is a boot option to
turn off such behavior.

Regards,
Michal

Attachment: signature.asc
Description: PGP signature