erofs: use HIPRI by default if per-cpu kthreads are enabled
PATCH 1/1 erofs: use HIPRI by default if per-cpu kthreads are enabled
As Sandeep shown [1], high priority RT per-cpu kthreads are typically helpful for Android scenarios to minimize the scheduling latencies.
Switch EROFS_FS_PCPU_KTHREAD_HIPRI on by default if EROFS_FS_PCPU_KTHREAD is on since it's the typical use cases for EROFS_FS_PCPU_KTHREAD.
Also clean up unneeded sched_set_normal().
[1] https://lore.kernel.org/r/CAB=BE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8GbO6wyUqFneQ@mail.gmail.com
--- fs/erofs/Kconfig | 1 + fs/erofs/zdata.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
fs/erofs/Kconfig +1 -0
@@ -121,6 +121,7 @@ config EROFS_FS_PCPU_KTHREAD config EROFS_FS_PCPU_KTHREAD_HIPRI bool "EROFS high priority per-CPU kthread workers" depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD + default y help This permits EROFS to configure per-CPU kthread workers to run at higher priority.
fs/erofs/zdata.c +0 -2
@@ -367,8 +367,6 @@ static struct kthread_worker *erofs_init_percpu_worker(int cpu)return worker;if (IS_ENABLED (CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI ))sched_set_fifo_low (worker->task); -else -sched_set_normal (worker->task,0 );return worker; }
Signature · 1 line
2.24.4
Yue Hu
reviewerQuoted 23 lines · On Mon, 22 May 2023 17:21:41 +0800 Gao Xiang <[email protected]>…
As Sandeep shown [1], high priority RT per-cpu kthreads are typically helpful for Android scenarios to minimize the scheduling latencies.
Switch
EROFS_FS_PCPU_KTHREAD_HIPRIon by default ifEROFS_FS_PCPU_KTHREADis on since it's the typical use cases forEROFS_FS_PCPU_KTHREAD.Also clean up unneeded
sched_set_normal().[1] https://lore.kernel.org/r/CAB=BE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8GbO6wyUqFneQ@mail.gmail.com
Cc Sandeep Dhavale <[email protected]>Signed-off-by Gao Xiang <[email protected]>--- fs/erofs/Kconfig | 1 + fs/erofs/zdata.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)fs/erofs/Kconfig +0
-0
fs/erofs/Kconfig config EROFS_FS_PCPU_KTHREAD · line 124
Quoted 4 lines
fs/erofs/Kconfig +1
-0@@ -121,6 +121,7 @@ config EROFS_FS_PCPU_KTHREAD config EROFS_FS_PCPU_KTHREAD_HIPRI bool "EROFS high priority per-CPU kthread workers" depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD + default y
How about removing this config option?
Quoted 16 lines
fs/erofs/Kconfig +0
-0help This permits EROFS to configure per-CPU kthread workers to run at higher priority.fs/erofs/zdata.c +0
-2@@ -367,8 +367,6 @@ static struct kthread_worker *erofs_init_percpu_worker(int cpu)return worker;if (IS_ENABLED (CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI ))sched_set_fifo_low (worker->task); -else -sched_set_normal (worker->task,0 );return worker; }
Quoted 21 lines · Yue Hu
Quoted 18 lines · On Mon, 22 May 2023 17:21:41 +0800 Gao Xiang <[email protected]>…
As Sandeep shown [1], high priority RT per-cpu kthreads are typically helpful for Android scenarios to minimize the scheduling latencies.
Switch
EROFS_FS_PCPU_KTHREAD_HIPRIon by default ifEROFS_FS_PCPU_KTHREADis on since it's the typical use cases forEROFS_FS_PCPU_KTHREAD.Also clean up unneeded
sched_set_normal().[1] https://lore.kernel.org/r/CAB=BE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8GbO6wyUqFneQ@mail.gmail.com
Cc Sandeep Dhavale <[email protected]>Signed-off-by Gao Xiang <[email protected]>--- fs/erofs/Kconfig | 1 + fs/erofs/zdata.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
Quoted 11 lines
fs/erofs/Kconfig config EROFS_FS_PCPU_KTHREAD · line 124
Quoted 9 lines
fs/erofs/Kconfig +1
-0@@ -121,6 +121,7 @@ config EROFS_FS_PCPU_KTHREAD config EROFS_FS_PCPU_KTHREAD_HIPRI bool "EROFS high priority per-CPU kthread workers" depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD + default yHow about removing this config option?
I tend to leave it as is.
Thanks,
Gao Xiang
Quoted 34 lines · On Tue, 23 May 2023 09:53:06 +0800 Gao Xiang <[email protected]>…
Quoted 21 lines · Yue Hu
Quoted 18 lines · On Mon, 22 May 2023 17:21:41 +0800 Gao Xiang <[email protected]>…
As Sandeep shown [1], high priority RT per-cpu kthreads are typically helpful for Android scenarios to minimize the scheduling latencies.
Switch
EROFS_FS_PCPU_KTHREAD_HIPRIon by default ifEROFS_FS_PCPU_KTHREADis on since it's the typical use cases forEROFS_FS_PCPU_KTHREAD.Also clean up unneeded
sched_set_normal().[1] https://lore.kernel.org/r/CAB=BE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8GbO6wyUqFneQ@mail.gmail.com
Cc Sandeep Dhavale <[email protected]>Signed-off-by Gao Xiang <[email protected]>--- fs/erofs/Kconfig | 1 + fs/erofs/zdata.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)Quoted 11 lines
fs/erofs/Kconfig config EROFS_FS_PCPU_KTHREAD · line 124
Quoted 9 lines
fs/erofs/Kconfig +1
-0@@ -121,6 +121,7 @@ config EROFS_FS_PCPU_KTHREAD config EROFS_FS_PCPU_KTHREAD_HIPRI bool "EROFS high priority per-CPU kthread workers" depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD + default yHow about removing this config option?
Quoted 1 line
I tend to leave it as is.
Okay.
Quoted 3 lines
Thanks,
Gao Xiang
Quoted 45 lines · Gao Xiang
As Sandeep shown [1], high priority RT per-cpu kthreads are typically helpful for Android scenarios to minimize the scheduling latencies.
Switch
EROFS_FS_PCPU_KTHREAD_HIPRIon by default ifEROFS_FS_PCPU_KTHREADis on since it's the typical use cases forEROFS_FS_PCPU_KTHREAD.Also clean up unneeded
sched_set_normal().[1] https://lore.kernel.org/r/CAB=BE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8GbO6wyUqFneQ@mail.gmail.com
Cc Sandeep Dhavale <[email protected]>Signed-off-by Gao Xiang <[email protected]>--- fs/erofs/Kconfig | 1 + fs/erofs/zdata.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)fs/erofs/Kconfig +1
-0@@ -121,6 +121,7 @@ config EROFS_FS_PCPU_KTHREAD config EROFS_FS_PCPU_KTHREAD_HIPRI bool "EROFS high priority per-CPU kthread workers" depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD + default y help This permits EROFS to configure per-CPU kthread workers to run at higher priority.fs/erofs/zdata.c +0
-3@@ -367,8 +367,6 @@ static struct kthread_worker *erofs_init_percpu_worker(int cpu)return worker;if (IS_ENABLED (CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI ))sched_set_fifo_low (worker->task); -else -sched_set_normal (worker->task,0 );return worker; } --
Quoted 2 lines
2.24.4
Looks good!
Quoted 8 lines · Gao Xiang
As Sandeep shown [1], high priority RT per-cpu kthreads are typically helpful for Android scenarios to minimize the scheduling latencies.
Switch
EROFS_FS_PCPU_KTHREAD_HIPRIon by default ifEROFS_FS_PCPU_KTHREADis on since it's the typical use cases forEROFS_FS_PCPU_KTHREAD.
Quoted 5 lines
Also clean up unneeded
sched_set_normal().[1] https://lore.kernel.org/r/CAB=BE-SBtO6vcoyLNA9F-9VaN5R0t3o_Zn+FW8GbO6wyUqFneQ@mail.gmail.com
Cc Sandeep Dhavale <[email protected]>Signed-off-by Gao Xiang <[email protected]>
Thanks,