Message ID | 20250122171925.25472-1-mgorman@techsingularity.net (mailing list archive) |
---|---|
Headers | show |
Series | Allow default HARDENED_USERCOPY to be set at compile time | expand |
On Wed, Jan 22, 2025 at 05:19:21PM +0000, Mel Gorman wrote: > on the exact CPU. While the benchmarks are somewhat synthetic, the overhead > IO-intensive and network-intensive is easily detectable but the root cause > may not be obvious (e.g. 2-14% overhead for netperf TCP_STREAM running > over localhost with different ranges depending on the CPU). I would be curious to see where this overhead is coming from. That seems extraordinarily high, and makes me think there is something more we should be fixing. :)
On Wed, Jan 22, 2025 at 05:02:29PM -0800, Kees Cook wrote: > On Wed, Jan 22, 2025 at 05:19:21PM +0000, Mel Gorman wrote: > > on the exact CPU. While the benchmarks are somewhat synthetic, the overhead > > IO-intensive and network-intensive is easily detectable but the root cause > > may not be obvious (e.g. 2-14% overhead for netperf TCP_STREAM running > > over localhost with different ranges depending on the CPU). > > I would be curious to see where this overhead is coming from. That seems > extraordinarily high, and makes me think there is something more we > should be fixing. :) > Almost certainly yes, it could be anything really but the results are consistent. It'll be somewhat tricky to narrow down given that it's somewhat specific to the CPU. It was outside the scope of the series to investigate. The primary aim was to provide the option to have hardened usercopy available, but not surprising from a performance perspective, via a single kernel binary.