Re: [PATCH v2] mm: Add configuration to control whether vmpressure notifier is enabled
From: Michal Hocko <mhocko@suse.com>
Date: 2021-09-06 06:37:14
Also in:
cgroups, linux-mm, lkml
From: Michal Hocko <mhocko@suse.com>
Date: 2021-09-06 06:37:14
Also in:
cgroups, linux-mm, lkml
On Sat 04-09-21 18:41:00, yong w wrote: [..]
quoted
It is not in conflict but runtime overhead reduction without more burden on the configurability is usually a preferred approach.I agree with you.I had an idea that we use global variables to identify whether there is event registration,however, global variables need to be protected with locks.
Have a look at static keys which are usual tool to provide effectivelly zero overhead disabled branch. -- Michal Hocko SUSE Labs