Low Encryption Performance on Atom Processors

Description

Lawrence Systems has reported that a Mini XL+ runnging SCALE with Atom based processor has much lower performance that CORE

https://www.truenas.com/community/threads/22-02-release-performance-regressions.99236/#post-684643

Separately, the OpenZFS community has identified a ZFS bug on Atom processors and provided a patch.

https://github.com/openzfs/zfs/issues/10846

Problem/Justification

None

Impact

None

Attachments

5

Activity

Ryan Moeller 
September 22, 2022 at 7:33 PM

Bolo Chavez 
September 16, 2022 at 9:20 PM
(edited)

hello, we have seen a visible improvement in performance with Ryan's fix.

The green line is before the fix with encryption on and the purple line is the performance after ryans fix. This is 1m sequential reads with a 1200G ADSS.

 

Here is the same test with writes:

 

The fix, as mentioned by Ryan Moeller, is to use the GPL-only symbols for FPU enter/exit which has a very obvious impact when looking at the time doing KFPU exit in the flame graphs. :

1200G 1mSEQ write before fix:

 

after fix:

 

However performance is still not up to the relative enc/unencrypted of core. In both situations we seem to be bottlenecked by the cpu on scale during reads even with the fix. examine the disck and cpu utiliz for scale: (red, green, and purple)

This includes iowait. I have kept it in here. for a better understanding of the definition of iowait see here: https://utcc.utoronto.ca/~cks/space/blog/unix/IowaitAndMultipleCPUs

we are also investigating a potential issue with the average iosize.

Ryan Moeller 
September 15, 2022 at 6:49 PM

After discussing with Brian Behelendorf, I will not be attempting to upstream this fix. He says we’re welcome to carry the patch downstream, but would rather we not open that can of worms with an upstream PR.

Ryan Moeller 
September 15, 2022 at 1:57 PM

My own patch for this looks promising in the benchmarks. may report more details on this. I am now discussing with upstream to gauge how receptive they would be to receiving this patch.

Ryan Moeller 
September 7, 2022 at 8:10 PM
(edited)

The patch in the issue comments changes the licensing of GPL-only symbols for FPU enter/exit in the Linux kernel so ZFS can use them, which we cannot distribute.

Complete

Details

Assignee

Reporter

Labels

Impact

Department Assigned

Original estimate

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created April 4, 2022 at 7:49 PM
Updated September 22, 2022 at 7:35 PM
Resolved September 22, 2022 at 7:33 PM