Latency, error finishing read, and IRQ affinity

More
2 years 8 months ago #293008 by mozmck
It seems like in the past I had tested on dual core and had it working, but it could be that irqbalance or maybe the service that starts it has been changed in newer versions/distributions. The problem I had recently was due to the fact that it did 'exit 1' which worked fine in the past, but now it had to be 'exit 0'
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #293011 by Mecanix
Nice one! Unfortunately the great Ice-Age, Medieval, Antiquated infamous Intel Core Duo's not happy with it. I can only get the service to start and the script executed with GRUB_CMDLINE_LINUX_DEFAULT="quiet". a.k.a. No isolcpus but then that defeats the purpose. Fails to start the service with isolcpus so I think you were initially right. Or perhaps I'm not doing it right, let's see if someone else with a similar coreduo set-up can. 
Code:
cnc@debian-duo:~$ sudo /etc/init.d/irqbalance status ● irqbalance.service - irqbalance daemon      Loaded: loaded (/lib/systemd/system/irqbalance.service; enabled; preset: enabled)      Active: active (running) since Sat 2024-02-10 11:56:07 EST; 2min 23s ago        Docs: man:irqbalance(1)              https://github.com/Irqbalance/irqbalance    Main PID: 370 (irqbalance)       Tasks: 2 (limit: 6868)      Memory: 1.7M         CPU: 222ms      CGroup: /system.slice/irqbalance.service              └─370 /usr/sbin/irqbalance --foreground --policyscript=/etc/irqbalance.d/lcnc_irqpolicy.sh Feb 10 11:56:07 debian-duo systemd[1]: Started irqbalance.service - irqbalance daemon.
 

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #293012 by tommylight
Made this sticky, thank you.
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #293018 by mozmck
Mecanix, the second script is for use without irqbalance running. It should be run from /etc/rc.local and not as a policyscript for irqbalance. I haven't tested it myself yet, but I know I have a dual-core or two around here that I can try it on. Probably be next week or so before I can find time to do that.

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #293024 by Mecanix

It should be run from /etc/rc.local and not as a policyscript for irqbalance.

Ah. You actually did mentioned, missed it, sry. 
Code:
$ sudo nano /etc/default/grub     #GRUB_CMDLINE_LINUX_DEFAULT="quiet"     GRUB_CMDLINE_LINUX_DEFAULT="quiet isolcpus=1" $ sudo update-grub $ sudo nano /etc/rc.local -----------------------------------------------------     #!/bin/sh -e     #     # IRQ Affinity by mozmck     sh '/etc/irqbalance.d/lcnc_irqpolicy.sh'     exit 0 ----------------------------------------------------- $ sudo chmod +x /etc/rc.local $ sudo systemctl daemon-reload $ sudo systemctl status rc-local

What's the required voodoo to verify/debug besides $ watch -n1 -d cat /proc/interrupts ? 

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #293025 by rodw

Made this sticky, thank you.
If this is stickied now, is this the right section? It might be better in Installing linuxcnc
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum