From 020312788bb805a0eb7281f464f9e6a4cdbd6378 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 12 May 2020 11:58:34 +0200 Subject: [PATCH] Start sf_buffer in separate cpuset --- README.md | 2 ++ scripts/JF07-buffer-worker.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 061555a..3afcbe8 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ https://blog.cloudflare.com/how-to-achieve-low-latency/ https://opensource.com/article/19/2/fair-scheduling-linux - Caching and Buffering in HDF5 https://de.slideshare.net/HDFEOS/caching-and-buffering-in-hdf5 +- Cpusets +https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt diff --git a/scripts/JF07-buffer-worker.sh b/scripts/JF07-buffer-worker.sh index cec237f..507e013 100644 --- a/scripts/JF07-buffer-worker.sh +++ b/scripts/JF07-buffer-worker.sh @@ -8,6 +8,9 @@ fi M=$1 +# Add ourselves to the user cpuset. +echo $$ > /sys/fs/cgroup/cpuset/user/tasks + #8 udp2buffer workers per core #coreAssociatedBuffer=(1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4) #4 udp2buffer workers per core