4.4-rc6-rt1
Subsystems (2)
Please don't continue reading before christmas eve (or morning, depending on your schedule). If you don't celebrate christmas, well go ahead.
Dear RT folks!
I'm pleased to announce the v4.4-rc6-rt1 patch set. I tested it on my AMD A10, 64bit. Nothing exploded so far, filesystem is still there. I haven't tested it on anything else. Before someone asks: this does not mean it does *not* work on ARM I simply did not try it.
If you are brave then download it, install it and have fun. If something breaks, please report it. If your machine starts blinking like a christmas tree while using the patch then *please* send a photo.
Changes since v4.1.15-rt17:
- rebase to v4.4-rc6
Known issues (inherited from v4.1-RT):
- bcache stays disabled
- CPU hotplug is not better than before
- The netlink_release() OOPS, reported by Clark, is still on the list, but unsolved due to lack of information
- Christoph Mathys reported a stall in cgroup locking code while using Linux containers.
You can get this release via the git tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v4.4-rc6-rt1
The RT patch against 4.4-rc6 can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patch-4.4-rc6-rt1.patch.xz
The split quilt queue is available at:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patches-4.4-rc6-rt1.tar.xz
Sebastian
Quoted 35 lines · On Wed, 23 Dec 2015 23:57:55 +0100 Sebastian Andrzej Siewior…
Please don't continue reading before christmas eve (or morning, depending on your schedule). If you don't celebrate christmas, well go ahead.
Dear RT folks!
I'm pleased to announce the v4.4-rc6-rt1 patch set. I tested it on my AMD A10, 64bit. Nothing exploded so far, filesystem is still there. I haven't tested it on anything else. Before someone asks: this does not mean it does *not* work on ARM I simply did not try it.
If you are brave then download it, install it and have fun. If something breaks, please report it. If your machine starts blinking like a christmas tree while using the patch then *please* send a photo.
Changes since v4.1.15-rt17:
- rebase to v4.4-rc6Known issues (inherited from v4.1-RT):
- bcache stays disabled- CPU hotplug is not better than before
- The
netlink_release()OOPS, reported by Clark, is still on the list, but unsolved due to lack of information- Christoph Mathys reported a stall in cgroup locking code while using Linux containers.
You can get this release via the git tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v4.4-rc6-rt1The RT patch against 4.4-rc6 can be found here:
Quoted 7 lines
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patch-4.4-rc6-rt1.patch.xzThe split quilt queue is available at:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patches-4.4-rc6-rt1.tar.xzSebastian
I pulled this update and tried it on my laptop (i7 quad-core with HT) and an Atom testbox. I'm seeing a change in the cpu utilization of ksoftirqd between 4.1.15-rt17 and 4.4-rc2-rt1, where the per-cpu ksoftirqd threads are running at between 25-40% utilization:
top - 10:15:57 up 13:46, 2 users, load average: 9.44, 9.30, 8.93
Tasks: 188 total, 2 running, 186 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.7 us, 53.6 sy, 0.0 ni, 37.4 id, 0.1 wa, 0.0 hi, 4.2 si, 0.0 st
KiB Mem : 4046064 total, 480548 free, 179528 used, 3385988 buff/cache KiB Swap: 5177340 total, 5169908 free, 7432 used. 3785624 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3 root -2 0 0 0 0 S 37.3 0.0 307:52.44 ksoftirqd/0
32 root -2 0 0 0 0 S 37.3 0.0 308:08.72 ksoftirqd/2
42 root -2 0 0 0 0 R 37.3 0.0 308:32.84 ksoftirqd/3
22 root -2 0 0 0 0 S 26.9 0.0 222:29.82 ksoftirqd/1
1 root 20 0 46628 6980 4976 S 1.3 0.2 0:13.98 systemd
22358 williams 20 0 159980 4552 3780 R 1.0 0.1 0:00.39 top This is on an otherwise idle box (I had just stopped a kernel compile, hence the load average figures). Normally with my config I see between 2-3% utilization from the ksoftirqd threads.
I've done a small amount of digging and nothing obvious has jumped out at me. Nothing changed in softirq.c, but there were changes in smpboot.c. I've attached the config I used with the 4.4 build.
I'll see what kind of info I can get with ftracing softirq events.
Clark
Quoted 11 lines · Clark Williams
I pulled this update and tried it on my laptop (i7 quad-core with HT) and an Atom testbox. I'm seeing a change in the cpu utilization of ksoftirqd between 4.1.15-rt17 and 4.4-rc2-rt1, where the per-cpu ksoftirqd threads are running at between 25-40% utilization:
top - 10:15:57 up 13:46, 2 users, load average: 9.44, 9.30, 8.93
Tasks: 188 total, 2 running, 186 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.7 us, 53.6 sy, 0.0 ni, 37.4 id, 0.1 wa, 0.0 hi, 4.2 si, 0.0 stKiB Mem : 4046064 total, 480548 free, 179528 used, 3385988 buff/cache KiB Swap: 5177340 total, 5169908 free, 7432 used. 3785624 avail Mem
Quoted 7 lines
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3 root -2 0 0 0 0 S 37.3 0.0 307:52.44 ksoftirqd/0
32 root -2 0 0 0 0 S 37.3 0.0 308:08.72 ksoftirqd/2
42 root -2 0 0 0 0 R 37.3 0.0 308:32.84 ksoftirqd/3
22 root -2 0 0 0 0 S 26.9 0.0 222:29.82 ksoftirqd/1
1 root 20 0 46628 6980 4976 S 1.3 0.2 0:13.98 systemd
22358 williams 20 0 159980 4552 3780 R 1.0 0.1 0:00.39 top Heh, I didn't notice immediately because I throttle nohz, am seeing only tiny utilization (but nohz idle isn't working). With throttle patch removed, box is screaming, expires=4294990471 pokes eyeball.
swapper 0 [003] 392.708321: timer:hrtimer_cancel: hrtimer=0xffff88041ecce720
swapper 0 [003] 392.708321: timer:hrtimer_start: hrtimer=0xffff88041ecce720 function=tick_sched_timer/0x0 expires=4294990471 softexpires=4294990471
swapper 0 [003] 392.708323: timer:hrtimer_cancel: hrtimer=0xffff88041ecce720
swapper 0 [003] 392.708324: timer:hrtimer_expire_entry: hrtimer=0xffff88041ecce720 now=392697118535 function=tick_sched_timer/0x0
swapper 0 [003] 392.708325: timer:hrtimer_expire_exit: hrtimer=0xffff88041ecce720
swapper 0 [003] 392.708326: timer:hrtimer_start: hrtimer=0xffff88041ecce720 function=tick_sched_timer/0x0 expires=392700750000 softexpires=392700750000
swapper 0 [003] 392.708328: timer:tick_stop: success=yes msg=
swapper 0 [003] 392.708329: timer:hrtimer_cancel: hrtimer=0xffff88041ecce720
swapper 0 [003] 392.708329: timer:hrtimer_start: hrtimer=0xffff88041ecce720 function=tick_sched_timer/0x0 expires=4294990471 softexpires=4294990471
swapper 0 [003] 392.708331: timer:hrtimer_cancel: hrtimer=0xffff88041ecce720
swapper 0 [003] 392.708332: timer:hrtimer_expire_entry: hrtimer=0xffff88041ecce720 now=392697126313 function=tick_sched_timer/0x0
swapper 0 [003] 392.708333: timer:hrtimer_expire_exit: hrtimer=0xffff88041ecce720
swapper 0 [003] 392.708334: timer:hrtimer_start: hrtimer=0xffff88041ecce720 function=tick_sched_timer/0x0 expires=392700750000 softexpires=392700750000
swapper 0 [003] 392.708336: timer:tick_stop: success=yes msg=Quoted 20 lines · Mike Galbraith
Quoted 11 lines · Clark Williams
I pulled this update and tried it on my laptop (i7 quad-core with HT) and an Atom testbox. I'm seeing a change in the cpu utilization of ksoftirqd between 4.1.15-rt17 and 4.4-rc2-rt1, where the per-cpu ksoftirqd threads are running at between 25-40% utilization:
top - 10:15:57 up 13:46, 2 users, load average: 9.44, 9.30, 8.93
Tasks: 188 total, 2 running, 186 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.7 us, 53.6 sy, 0.0 ni, 37.4 id, 0.1 wa, 0.0 hi, 4.2 si, 0.0 stKiB Mem : 4046064 total, 480548 free, 179528 used, 3385988 buff/cache KiB Swap: 5177340 total, 5169908 free, 7432 used. 3785624 avail MemQuoted 7 lines
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3 root -2 0 0 0 0 S 37.3 0.0 307:52.44 ksoftirqd/0 32 root -2 0 0 0 0 S 37.3 0.0 308:08.72 ksoftirqd/2 42 root -2 0 0 0 0 R 37.3 0.0 308:32.84 ksoftirqd/3 22 root -2 0 0 0 0 S 26.9 0.0 222:29.82 ksoftirqd/1 1 root 20 0 46628 6980 4976 S 1.3 0.2 0:13.98 systemd 22358 williams 20 0 159980 4552 3780 R 1.0 0.1 0:00.39 top
Quoted 6 lines
Heh, I didn't notice immediately because I throttle nohz, am seeing only tiny utilization (but nohz idle isn't working). With throttle patch removed, box is screaming, expires=4294990471 pokes eyeball.
swapper 0 [003] 392.708321: timer:hrtimer_cancel: hrtimer=0xffff88041ecce720 swapper 0 [003] 392.708321: timer:hrtimer_start: hrtimer=0xffff88041ecce720 function=tick_sched_timer/0x0 expires=4294990471 softexpires=4294990471
There is a major hickup in the hrtimer RT conversion. I'll have a look next week.
Thanks,
tglx
Quoted 25 lines · Thomas Gleixner
Quoted 24 lines · Mike Galbraith
Quoted 11 lines · Clark Williams
I pulled this update and tried it on my laptop (i7 quad-core with HT) and an Atom testbox. I'm seeing a change in the cpu utilization of ksoftirqd between 4.1.15-rt17 and 4.4-rc2-rt1, where the per-cpu ksoftirqd threads are running at between 25-40% utilization:
top - 10:15:57 up 13:46, 2 users, load average: 9.44, 9.30, 8.93
Tasks: 188 total, 2 running, 186 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.7 us, 53.6 sy, 0.0 ni, 37.4 id, 0.1 wa, 0.0 hi, 4.2 si, 0.0 stKiB Mem : 4046064 total, 480548 free, 179528 used, 3385988 buff/cache KiB Swap: 5177340 total, 5169908 free, 7432 used. 3785624 avail MemQuoted 7 lines
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3 root -2 0 0 0 0 S 37.3 0.0 307:52.44 ksoftirqd/0 32 root -2 0 0 0 0 S 37.3 0.0 308:08.72 ksoftirqd/2 42 root -2 0 0 0 0 R 37.3 0.0 308:32.84 ksoftirqd/3 22 root -2 0 0 0 0 S 26.9 0.0 222:29.82 ksoftirqd/1 1 root 20 0 46628 6980 4976 S 1.3 0.2 0:13.98 systemd 22358 williams 20 0 159980 4552 3780 R 1.0 0.1 0:00.39 topHeh, I didn't notice immediately because I throttle nohz, am seeing only tiny utilization (but nohz idle isn't working). With throttle patch removed, box is screaming, expires=4294990471 pokes eyeball.
Quoted 5 lines
Quoted 2 lines
swapper 0 [003] 392.708321: timer:hrtimer_cancel: hrtimer=0xffff88041ecce720 swapper 0 [003] 392.708321: timer:hrtimer_start: hrtimer=0xffff88041ecce720 function=tick_sched_timer/0x0 expires=4294990471 softexpires=4294990471There is a major hickup in the hrtimer RT conversion. I'll have a look next week.
Yeah, fixing up the screaming didn't do wonderful things, box is a lethargic slug. I'll have a poke over the weekend, see how close I get to fixing hickups up properly.
-Mike
Hi Sebastian
Thanks for your christmas present :-).
Am Mittwoch, 23. Dezember 2015, 23:57:55 schrieb Sebastian Andrzej Siewior:
Quoted 3 lines
Please don't continue reading before christmas eve (or morning, depending on your schedule). If you don't celebrate christmas, well go ahead.
Ok, i have to admit i am a little late to the party.
Quoted 6 lines
Dear RT folks!
I'm pleased to announce the v4.4-rc6-rt1 patch set. I tested it on my AMD A10, 64bit. Nothing exploded so far, filesystem is still there. I haven't tested it on anything else. Before someone asks: this does not mean it does *not* work on ARM I simply did not try it.
With the trivial compile patch below it is working on ARM:
Specifically two Cortex A9 on a CycloneV from Altera.
The performance without load looks good:
# Total: 100000000 100000000
# Min Latencies: 00009 00009
# Avg Latencies: 00010 00010
# Max Latencies: 00022 00033
A short run with hackbench load reveals an latency "island" from 54-69µs on the first core. There are no timer ticks with 34 to 53 µs delay.
# Total: 001000000 000999714
# Min Latencies: 00010 00009
# Avg Latencies: 00017 00010
# Max Latencies: 00069 00029
I will test further and report if i find strange occurences.
Quoted 3 lines
If you are brave then download it, install it and have fun. If something breaks, please report it. If your machine starts blinking like a christmas tree while using the patch then *please* send a photo.
Sorry no photos, no special blinking.
Best regards
Tim
kernel/time/hrtimer.c 2016-01-06 16:56:48.213215320 +0100 renamed from kernel/time/hrtimer.c.orig 2016-01-06 16:56:32.573527206 +0100 +1 -2
@@ -1435,6 +1435,7 @@ #endif +static enum hrtimer_restart hrtimer_wakeup(struct hrtimer *timer); static void __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now) {
@@ -1490,8 +1491,6 @@ raise_softirq_irqoff(HRTIMER_SOFTIRQ); } -static enum hrtimer_restart hrtimer_wakeup(struct hrtimer *timer); - #ifdef CONFIG_HIGH_RES_TIMERS /*
Re: [ANNOUNCE] 4.4-rc6-rt1 (arm64)
In reply to a message not in the archiveHi All,
I am trying to boot linux kernel 4.4.rc7 with the 4.4-rc6-rt1 patch on Cavium thunderX arm64 platform Below is the bootlog with errors.
......
ata4: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
ata1.00: ATA-8: WDC WD5003ABYZ-011FA0, 01.01S03, max UDMA/133
ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA WDC WD5003ABYZ-0 1S03 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
sched: RT throttling activated
NOHZ: local_softirq_pending 02
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
NOHZ: local_softirq_pending 82
ata1.00: exception Emask 0x0 SAct 0x4000 SErr 0x0 action 0x6 frozen ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/08:70:00:08:20/00:00:00:00:00/40 tag 14 ncq 4096 in
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
ata1.00: qc timeout (cmd 0xec)
ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
ata1.00: revalidation failed (errno=-5)
ata1: hard resetting link
ata1.00: qc timeout (cmd 0xec)
ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
ata1.00: revalidation failed (errno=-5)
ata1.00: disabled
ata1.00: device reported invalid CHS sector 0
ata1: hard resetting link
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
ata1: EH complete
sd 0:0:0:0: [sda] tag#16 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 sd 0:0:0:0: [sda] tag#16 CDB: opcode=0x28 28 00 00 20 08 00 00 00 08 00blk_update_request: I/O error, dev sda, sector 2099200
EXT4-fs (sda2): Can't read superblock on 2nd try
sd 0:0:0:0: [sda] tag#18 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 sd 0:0:0:0: [sda] tag#18 CDB: opcode=0x28 28 00 00 20 08 02 00 00 02 00blk_update_request: I/O error, dev sda, sector 2099202
EXT4-fs (sda2): unable to read superblock
sd 0:0:0:0: [sda] tag#20 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 sd 0:0:0:0: [sda] tag#20 CDB: opcode=0x28 28 00 00 20 08 02 00 00 02 00blk_update_request: I/O error, dev sda, sector 2099202
EXT2-fs (sda2): error: unable to read superblock
sd 0:0:0:0: [sda] tag#22 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 sd 0:0:0:0: [sda] tag#22 CDB: opcode=0x28 28 00 00 20 08 00 00 00 01 00blk_update_request: I/O error, dev sda, sector 2099200
FAT-fs (sda2): unable to read boot sector
VFS: Cannot open root device "sda2" or unknown-block(8,2): error -5 Please append a correct "root=" boot option; here are the available partitions:
0800 488386584 sda driver: sd
0801 1048576 sda1 60ff81a8-b24d-49ac-bcf4-c8dd8fc66cba
0802 33800192 sda2 7549f29b-11b1-4284-9d21-efd6a9d8dfc1
0803 453536768 sda3 92c94e3c-2c71-4e1b-82d4-804bb7a68b8a
0802 33800192 sda2 7549f29b-11b1-4284-9d21-efd6a9d8dfc1 0803 453536768 sda3 92c94e3c-2c71-4e1b-82d4-804bb7a68b8a
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2) CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.0-rc7-rt1+ #11Call trace: [<fffffe0000096a3c>] dump_backtrace+0x0/0x11c [<fffffe0000096b6c>] show_stack+0x14/0x1c [<fffffe000030a37c>] dump_stack+0x88/0xa8 [<fffffe000014be34>] panic+0xf0/0x23c [<fffffe0000850ec4>] mount_block_root+0x1b8/0x25c [<fffffe0000851090>] mount_root+0x128/0x144 [<fffffe00008511e8>] prepare_namespace+0x13c/0x184 [<fffffe0000850b54>] kernel_init_freeable+0x1d0/0x1f4 [<fffffe00005c7524>] kernel_init+0x10/0xd8 [<fffffe0000093980>] ret_from_fork+0x10/0x50
CPU2: stopping
Quoted 1 line · * Tim Sander | 2016-01-07 13:15:33 [+0100]:
Signed-off-by Tim Sander <[email protected]>
Thanks for the report.
Sebastian
Re: [ANNOUNCE] 4.4-rc6-rt1 (arm64)
In reply to Jaggi, ManishQuoted 4 lines · * Jaggi, Manish | 2016-01-13 11:45:54 [+0000]:
Hi All,
I am trying to boot linux kernel 4.4.rc7 with the 4.4-rc6-rt1 patch on Cavium thunderX arm64 platform Below is the bootlog with errors.
This and your previous email look the same to me.
Did v4.1-RT work here?
Can you enable some debuging in order to figure out what triggers "RT throttling activated"? lockdep, sleeping while atomic, the usual stuff :)
Quoted 1 line
Sebastian
Quoted 11 lines · * Mike Galbraith | 2016-01-01 08:19:41 [+0100]:
Quoted 7 lines
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3 root -2 0 0 0 0 S 37.3 0.0 307:52.44 ksoftirqd/0 32 root -2 0 0 0 0 S 37.3 0.0 308:08.72 ksoftirqd/2 42 root -2 0 0 0 0 R 37.3 0.0 308:32.84 ksoftirqd/3 22 root -2 0 0 0 0 S 26.9 0.0 222:29.82 ksoftirqd/1 1 root 20 0 46628 6980 4976 S 1.3 0.2 0:13.98 systemd 22358 williams 20 0 159980 4552 3780 R 1.0 0.1 0:00.39 topHeh, I didn't notice immediately because I throttle nohz, am seeing only tiny utilization (but nohz idle isn't working). With throttle patch removed, box is screaming, expires=4294990471 pokes eyeball.
This is due to NO_HZ as far as I can tell. My AMD A10 in idle mode has 0.7% utilisation of ksoftirqd/ with CONFIG_HZ_PERIODIC and with CONFIG_NO_HZ_FULL it shows about 25% on all CPU threads.
Sebastian
Quoted 10 lines · Sebastian Andrzej Siewior
Quoted 8 lines · * Mike Galbraith | 2016-01-01 08:19:41 [+0100]:
Quoted 7 lines
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3 root -2 0 0 0 0 S 37.3 0.0 307:52.44 ksoftirqd/0 32 root -2 0 0 0 0 S 37.3 0.0 308:08.72 ksoftirqd/2 42 root -2 0 0 0 0 R 37.3 0.0 308:32.84 ksoftirqd/3 22 root -2 0 0 0 0 S 26.9 0.0 222:29.82 ksoftirqd/1 1 root 20 0 46628 6980 4976 S 1.3 0.2 0:13.98 systemd22358 williams 20 0 159980 4552 3780 R 1.0 0.1 0:00.39 top
Quoted 8 lines
Quoted 3 lines
Heh, I didn't notice immediately because I throttle nohz, am seeing only tiny utilization (but nohz idle isn't working). With throttle patch removed, box is screaming, expires=4294990471 pokes eyeball.
This is due to
NO_HZas far as I can tell. My AMD A10 in idle mode has 0.7% utilisation of ksoftirqd/ withCONFIG_HZ_PERIODICand withCONFIG_NO_HZ_FULLit shows about 25% on all CPU threads.
I might be wrong completely, but could below two patches affect on CPU utilization of ksoftirqd?
6047967 ksoftirqd: Use new cond_resched_rcu_qs() function 28423ad ksoftirqd: Enable IRQs and call cond_resched() before poking RCU
above two patches are not applied on -RT part of softirqs processing.
static void run_ksoftirqd(unsigned int cpu)
{
local_irq_disable();
current->softirq_nestcnt++;
do_current_softirqs();
current->softirq_nestcnt--;
rcu_note_context_switch();^^^ IRQs disabled
local_irq_enable(); }
Signature · 2 lines
regards, -grygorii
Quoted 17 lines · Sebastian Andrzej Siewior
Quoted 15 lines · * Mike Galbraith | 2016-01-01 08:19:41 [+0100]:
Quoted 14 lines
PID USER PR NI VIRT RES SHR S %CPU %MEM
TIME+ COMMAND3 root -2 0 0 0 0 S 37.3 0.0307:52.44 ksoftirqd/0
32 root -2 0 0 0 0 S 37.3 0.0
308:08.72 ksoftirqd/2
42 root -2 0 0 0 0 R 37.3 0.0
308:32.84 ksoftirqd/3
22 root -2 0 0 0 0 S 26.9 0.0
222:29.82 ksoftirqd/11 root 20 0 46628 6980 4976 S 1.3 0.20:13.98 systemd
22358 williams 20 0 159980 4552 3780 R 1.0 0.1
0:00.39 top
Quoted 8 lines
Quoted 3 lines
Heh, I didn't notice immediately because I throttle nohz, am seeing only tiny utilization (but nohz idle isn't working). With throttle patch removed, box is screaming, expires=4294990471 pokes eyeball.
This is due to
NO_HZas far as I can tell. My AMD A10 in idle mode has
0.7% utilisation of ksoftirqd/ withCONFIG_HZ_PERIODICand withCONFIG_NO_HZ_FULLit shows about 25% on all CPU threads.
Thomas said the hrtimer adjustments went a little out of round. I started rummaging, but then the world woke up from the holidays, so I didn't get _to_ square one, much lest past it. Hohum.
-Mike
Re: [ANNOUNCE] 4.4-rc6-rt1 (arm64)
In reply to Sebastian Andrzej SiewiorHi Sebastian ,
One quick point, I disabled the hr timer from kernel config and I was able to boot kernel.
Regards,
Manish Jaggi
________________________________________
From: Sebastian Andrzej Siewior <[email protected]>
Sent: Wednesday, January 13, 2016 7:15 PM
To: Jaggi, Manish
Cc: Mike Galbraith; Clark Williams; Thomas Gleixner; LKML; linux-rt-users; Steven Rostedt
Subject: Re: [ANNOUNCE] 4.4-rc6-rt1 (arm64)
Quoted 4 lines · * Jaggi, Manish | 2016-01-13 11:45:54 [+0000]:
Hi All,
I am trying to boot linux kernel 4.4.rc7 with the 4.4-rc6-rt1 patch on Cavium thunderX arm64 platform Below is the bootlog with errors.
This and your previous email look the same to me.
Did v4.1-RT work here?
Can you enable some debuging in order to figure out what triggers "RT throttling activated"? lockdep, sleeping while atomic, the usual stuff :)
Quoted 1 line
Sebastian
Quoted 3 lines · * Sebastian Andrzej Siewior | 2016-01-13 18:58:45 [+0100]:
This is due to
NO_HZas far as I can tell. My AMD A10 in idle mode has 0.7% utilisation of ksoftirqd/ withCONFIG_HZ_PERIODICand withCONFIG_NO_HZ_FULLit shows about 25% on all CPU threads.
This should fixed it:
kernel/time/timer.c +1 -1
@@ -1453,7 +1453,7 @@ u64 get_next_timer_interrupt(unsigned long basej, u64 basem)* the base lock to check when the next timer is pending and so * we assume the next jiffy. */ -return basej; +return basem +TICK_NSEC ;#endif spin_lock (&base->lock);if (base->active_timers) {
Sebastian
Quoted 15 lines · Sebastian Andrzej Siewior
Quoted 4 lines · * Sebastian Andrzej Siewior | 2016-01-13 18:58:45 [+0100]:
This is due to
NO_HZas far as I can tell. My AMD A10 in idle mode has
0.7% utilisation of ksoftirqd/ withCONFIG_HZ_PERIODICand withCONFIG_NO_HZ_FULLit shows about 25% on all CPU threads.This should fixed it:
kernel/time/timer.c +0
-0@@ -1453,7 +1453,7 @@ u64 get_next_timer_interrupt(unsigned long basej, u64 basem) * the base lock to check when the next timer is pending andso
kernel/time/timer.c u64 get_next_timer_interrupt(unsigned long basej, u64 basem) · line 1459
Quoted 7 lines
kernel/time/timer.c +1
-1* we assume the next jiffy. */ -return basej; +return basem +TICK_NSEC ;#endif spin_lock (&base->lock);if (base->active_timers) {
That's what I had done to stop the screaming interrupt, but box still behaved very badly.
-Mike
Quoted 10 lines · Mike Galbraith
Quoted 9 lines · Sebastian Andrzej Siewior
Quoted 4 lines · * Sebastian Andrzej Siewior | 2016-01-13 18:58:45 [+0100]:
This is due to
NO_HZas far as I can tell. My AMD A10 in idle mode has
0.7% utilisation of ksoftirqd/ withCONFIG_HZ_PERIODICand withCONFIG_NO_HZ_FULLit shows about 25% on all CPU threads.This should fixed it:
Quoted 16 lines
kernel/time/timer.c u64 get_next_timer_interrupt(unsigned long basej, u64 basem) · line 1459
Quoted 13 lines
kernel/time/timer.c +0
-0@@ -1453,7 +1453,7 @@ u64 get_next_timer_interrupt(unsigned long basej, u64 basem) * the base lock to check when the next timer is pending andso
kernel/time/timer.c +1
-1* we assume the next jiffy. */ -return basej; +return basem +TICK_NSEC ;#endif spin_lock (&base->lock);if (base->active_timers) {That's what I had done to stop the screaming interrupt, but box still behaved very badly.
If you turn off CONFIG_NO_HZ_FULL and switch to NO_HZ_IDLE is it still bad?
Thanks,
tglx
Quoted 28 lines · Thomas Gleixner
Quoted 4 lines · Mike Galbraith
Quoted 3 lines · Sebastian Andrzej Siewior
Quoted 1 line · * Sebastian Andrzej Siewior | 2016-01-13 18:58:45 [+0100]:
This is due to
NO_HZas far as I can tell. My AMD A10 in idlemode
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
has
0.7% utilisation of ksoftirqd/ withCONFIG_HZ_PERIODICand withCONFIG_NO_HZ_FULLit shows about 25% on all CPU threads.This should fixed it:
Quoted 15 lines
kernel/time/timer.c u64 get_next_timer_interrupt(unsigned long basej, u64 basem) · line 1459
Quoted 13 lines
kernel/time/timer.c +0
-0@@ -1453,7 +1453,7 @@ u64 get_next_timer_interrupt(unsigned long basej, u64 basem) * the base lock to check when the next timer is pending andso
* we assume the next jiffy.
*/kernel/time/timer.c +1
-1-return basej; +return basem +TICK_NSEC ;#endif spin_lock (&base->lock);if (base->active_timers) {That's what I had done to stop the screaming interrupt, but box
Quoted 5 lines
still
Quoted 1 line
behaved very badly.
If you turn off
CONFIG_NO_HZ_FULLand switch toNO_HZ_IDLEis it still bad?
I didn't have CONFIG_NO_HZ_FULL enabled, it was CONFIG_NO_HZ_IDLE.
-Mike
Quoted 7 lines · * Grygorii Strashko | 2016-01-13 20:36:56 [+0200]:
I might be wrong completely, but could below two patches affect on CPU utilization of ksoftirqd?
6047967 ksoftirqd: Use new
cond_resched_rcu_qs()function 28423ad ksoftirqd: Enable IRQs and callcond_resched()before poking RCUabove two patches are not applied on -RT part of softirqs processing.
this has been overseen, thanks.
Sebastian
Quoted 29 lines · Mike Galbraith
Quoted 28 lines · Thomas Gleixner
Quoted 4 lines · Mike Galbraith
Quoted 3 lines · Sebastian Andrzej Siewior
Quoted 1 line · * Sebastian Andrzej Siewior | 2016-01-13 18:58:45 [+0100]:
This is due to
NO_HZas far as I can tell. My AMD A10 in idlemode
Quoted 21 lines
Quoted 14 lines
Quoted 3 lines
has
0.7% utilisation of ksoftirqd/ withCONFIG_HZ_PERIODICand withCONFIG_NO_HZ_FULLit shows about 25% on all CPU threads.This should fixed it:
kernel/time/timer.c +0
-0@@ -1453,7 +1453,7 @@ u64 get_next_timer_interrupt(unsigned long basej, u64 basem) * the base lock to check when the next timer is pending andso
* we assume the next jiffy.
*/kernel/time/timer.c u64 get_next_timer_interrupt(unsigned long basej, u64 basem) · line 1459
Quoted 5 lines
kernel/time/timer.c +1
-1-return basej; +return basem +TICK_NSEC ;#endif spin_lock (&base->lock);if (base->active_timers) {That's what I had done to stop the screaming interrupt, but box
Quoted 7 lines
Quoted 5 lines
still
Quoted 1 line
behaved very badly.
If you turn off
CONFIG_NO_HZ_FULLand switch toNO_HZ_IDLEis it still bad?I didn't have
CONFIG_NO_HZ_FULLenabled, it wasCONFIG_NO_HZ_IDLE.
So with the above fix it still behaves badly. Can you provide your config and a hint which workload/idle/whatever state results in bad behaviour.
Thanks,
tglx
Quoted 4 lines · Thomas Gleixner
Quoted 1 line
I didn't have
CONFIG_NO_HZ_FULLenabled, it wasCONFIG_NO_HZ_IDLE.So with the above fix it still behaves badly. Can you provide your config and a hint which workload/idle/whatever state results in bad behaviour.
This is virgin -rt1 modulo fixlet applied to v4.4.0, built with the .config from v4.4.0 that built it (modulo RT_FULL) rebuilding itself via make -j8.
homer:/root # vmstat 10
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st 0 1 0 14742988 179832 680792 0 0 634 25 326 1196 2 1 89 8 0 8 0 0 14476084 179848 701632 0 0 814 525 2421 12314 11 1 87 1 0 8 0 0 14483232 179864 712656 0 0 165 1628 2404 12320 11 1 87 1 0 8 0 0 14493336 180008 727836 0 0 141 762 2328 11306 11 1 87 0 0 8 0 0 14456436 180024 738356 0 0 159 1478 2336 11939 11 1 87 0 0
Way too idle, taking forever.
-Mike
Quoted 6 lines · Mike Galbraith
This is virgin -rt1 modulo fixlet applied to v4.4.0, built with the .config from v4.4.0 that built it (modulo
RT_FULL) rebuilding itself via make -j8.homer:/root # vmstat 10
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
Quoted 8 lines
r b swpd free buff cache si so bi bo in cs us sy id wa st 0 1 0 14742988 179832 680792 0 0 634 25 326 1196 2 1 89 8 0 8 0 0 14476084 179848 701632 0 0 814 525 2421 12314 11 1 87 1 0 8 0 0 14483232 179864 712656 0 0 165 1628 2404 12320 11 1 87 1 0 8 0 0 14493336 180008 727836 0 0 141 762 2328 11306 11 1 87 0 0 8 0 0 14456436 180024 738356 0 0 159 1478 2336 11939 11 1 87 0 0Way too idle, taking forever.
It now being the weekend...
sched: Disable default set_cpus_allowed() method during update_migrate_disable().
update_migrate_disable() calls class::set_cpus_allowed(), when that method is set_cpus_allowed_common(), writing to ->cpus_allowed defeats the intent of migrate_disable(), permanently disabling migration instead.
--- kernel/sched/core.c | 2 ++ 1 file changed, 2 insertions(+)
kernel/sched/core.c +2 -0
@@ -1205,6 +1205,8 @@ static int migration_cpu_stop(void *data*/ void set_cpus_allowed_common (struct task_struct *p,const struct cpumask *new_mask) { +if (__migrate_disabled (p)) +return ;cpumask_copy (&p->cpus_allowed, new_mask); p->nr_cpus_allowed =cpumask_weight (new_mask); }
Quoted 17 lines · Mike Galbraith
Quoted 6 lines · Mike Galbraith
This is virgin -rt1 modulo fixlet applied to v4.4.0, built with the .config from v4.4.0 that built it (modulo
RT_FULL) rebuilding itself via make -j8.homer:/root # vmstat 10
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----Quoted 8 lines
r b swpd free buff cache si so bi bo in cs us sy id wa st 0 1 0 14742988 179832 680792 0 0 634 25 326 1196 2 1 89 8 0 8 0 0 14476084 179848 701632 0 0 814 525 2421 12314 11 1 87 1 0 8 0 0 14483232 179864 712656 0 0 165 1628 2404 12320 11 1 87 1 0 8 0 0 14493336 180008 727836 0 0 141 762 2328 11306 11 1 87 0 0 8 0 0 14456436 180024 738356 0 0 159 1478 2336 11939 11 1 87 0 0Way too idle, taking forever.
Quoted 7 lines
It now being the weekend...
sched: Disable default
set_cpus_allowed()method duringupdate_migrate_disable().
update_migrate_disable()callsclass::set_cpus_allowed(), when that method isset_cpus_allowed_common(), writing to ->cpus_allowed defeats the intent ofmigrate_disable(), permanently disabling migration instead.
Ha, you found it as well :)
Quoted 17 lines
Signed-off-by Mike Galbraith <[email protected]>--- kernel/sched/core.c | 2 ++ 1 file changed, 2 insertions(+)kernel/sched/core.c +2
-0@@ -1205,6 +1205,8 @@ static int migration_cpu_stop(void *data*/ void set_cpus_allowed_common (struct task_struct *p,const struct cpumask *new_mask) { +if (__migrate_disabled (p)) +return ;cpumask_copy (&p->cpus_allowed, new_mask); p->nr_cpus_allowed =cpumask_weight (new_mask); }
Quoted 1 line · Thomas Gleixner
Ha, you found it as well :)
Yeah, with time to actually look, I rather quickly had one of those "well _duh_" moments :)
-Mike
Quoted 6 lines · Mike Galbraith
Quoted 1 line · Thomas Gleixner
Ha, you found it as well :)
Yeah, with time to actually look, I rather quickly had one of those "well _duh_" moments :)
Actually the new way how the scheduler handles set_cpus_allowed() makes it superflous to call that stuff at all.
All scheduler classes except deadline merily call set_cpus_allowed_common() and deadline does not do the 'change root domain' dance either.
So we can simplify the whole business a lot.
Thanks,
tglx
Quoted 4 lines · Thomas Gleixner
All scheduler classes except deadline merily call
set_cpus_allowed_common()and deadline does not do the 'change root domain' dance either.So we can simplify the whole business a lot.
Goody. Seeing if I could avoid mostly useless function call was next.
Quoted 33 lines · Sebastian Andrzej Siewior
Please don't continue reading before christmas eve (or morning, depending on your schedule). If you don't celebrate christmas, well go ahead.
Dear RT folks!
I'm pleased to announce the v4.4-rc6-rt1 patch set. I tested it on my AMD A10, 64bit. Nothing exploded so far, filesystem is still there. I haven't tested it on anything else. Before someone asks: this does not mean it does *not* work on ARM I simply did not try it.
If you are brave then download it, install it and have fun. If something breaks, please report it. If your machine starts blinking like a christmas tree while using the patch then *please* send a photo.
Changes since v4.1.15-rt17:
- rebase to v4.4-rc6Known issues (inherited from v4.1-RT):
- bcache stays disabled- CPU hotplug is not better than before
- The
netlink_release()OOPS, reported by Clark, is still on the list, but unsolved due to lack of information- Christoph Mathys reported a stall in cgroup locking code while using Linux containers.
You can get this release via the git tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v4.4-rc6-rt1
Quoted 8 lines
The RT patch against 4.4-rc6 can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patch-4.4-rc6-rt1.patch.xzThe split quilt queue is available at:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patches-4.4-rc6-rt1.tar.xz
Additional note: RCU_BOOST now depends on RCU_EXPERT, so commit 3da4cab "rcu: make RCU_BOOST default on RT" is nop now.
config RCU_BOOST
bool "Enable RCU priority boosting" depends on RT_MUTEXES && PREEMPT_RCU && RCU_EXPERT default y if PREEMPT_RT_FULL
Signature · 2 lines
regards, -grygorii
Quoted 7 lines · Grygorii Strashko
Additional note:
RCU_BOOSTnow depends onRCU_EXPERT, so commit 3da4cab "rcu: makeRCU_BOOSTdefault on RT" is nop now.config
RCU_BOOST
bool "Enable RCU priority boosting" depends onRT_MUTEXES&&PREEMPT_RCU&&RCU_EXPERTdefault y ifPREEMPT_RT_FULL
yeah, I've been thinking about giving the experts menu item an y on RT as well.
Sebastian
Quoted 11 lines · * Sebastian Andrzej Siewior | 2016-01-22 16:48:09 [+0100]:
Quoted 7 lines · Grygorii Strashko
Additional note:
RCU_BOOSTnow depends onRCU_EXPERT, so commit 3da4cab "rcu: makeRCU_BOOSTdefault on RT" is nop now.config
RCU_BOOST
bool "Enable RCU priority boosting" depends onRT_MUTEXES&&PREEMPT_RCU&&RCU_EXPERTdefault y ifPREEMPT_RT_FULLyeah, I've been thinking about giving the experts menu item an y on RT as well.
Subject: [PATCH] RCU: make RCU_EXPERT y on RT
because we want RCU_BOOST y on RT
--- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
init/Kconfig +1 -1
@@ -498,7 +498,7 @@ config TINY_RCU config RCU_EXPERT bool "Make expert-level adjustments to RCU configuration" - default n + default y if PREEMPT_RT_FULL help This option needs to be enabled if you wish to make expert-level adjustments to RCU configuration. By default,
Signature · 1 line
2.7.0.rc3