Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
188 views

I've a question related to the use of ftrace on Linux kernel 4.15. ftrace is configured as follows: mount -t debugfs nodev /sys/kernel/debug echo funcgraph-proc > /sys/kernel/debug/tracing/...
CarloC's user avatar
  • 313
0 votes
0 answers
210 views

I have read that multiple instances of a softirq can be run on different cores in a multi-core system. Based on above statement, I have deduced below understanding with a example. The system received ...
Naresh's user avatar
  • 23
1 vote
0 answers
301 views

I would like to know what exactly are the TIMER softirqs in /proc/softirqs are doing, so I can reduce their frequency. I believe the local timer interrupts generated by the local APIC give rise to ...
Temporary TLB's user avatar
0 votes
1 answer
322 views

Recently I've been looking into one NIC driver implemented by NAPI which uses softirq to handle tx&rx packets, and lots of docs say softirq can be triggered when hardware interrupt return, then I ...
Xuan Li's user avatar
  • 81
8 votes
0 answers
2k views

I'm trying to debug some performance issues on a RHEL8.3 server. The server is actually a Kubernetes worker nodes and hosts several Redis containers (PODs). These containers are doing a lot of network ...
Francesco Montorsi's user avatar
0 votes
1 answer
147 views

I am writing a kernel module to hook to the trace point of softirq_raise. I found it could be shown in /sys/kernel/debug/tracing/available_events:irq:softirq_raise /sys/kernel/debug/tracing/...
wangt13's user avatar
  • 1,307
-1 votes
1 answer
744 views

my purpose : log debug info(ratio , address, else)of softirq generation in specific situation. any information can be helpful. I suppose some suspicious device driver but has no clue which generated ...
noBODYcare's user avatar
4 votes
2 answers
8k views

I'm trying to implement a simple interrupt controller for my RV32I core. I believe I understand how an interrupt should be handled in RISC-V, and the role of the CSR registers in the process. RISC-V ...
zeke's user avatar
  • 315
1 vote
0 answers
1k views

Assume I have RSS and interrupt affinity correctly set up. Is it guaranteed by the Linux kernel that a softirq is executed on the same CPU/core where hardware interrupt handler has been triggered? I ...
Mark's user avatar
  • 6,604
0 votes
1 answer
843 views

I've been studying about interrupts in Linux and softirq in particular (I'm interested in networking subsystem of the kernel). I understand the concept of top-half and bottom-half, but what's not ...
Mark's user avatar
  • 6,604
0 votes
1 answer
182 views

These days, I'm studying kernel internal network code, especially RPS code. You know, there are a lot of functions about that. But I am focusing on some functions about SMP queue processing such as ...
Youngwook's user avatar
0 votes
0 answers
182 views

As we know that USB URB completion callback will execute in softIRQ context. Let me explain the background in which I am trying to use send_sig_info(). So I'm currently working on Data Acquisition ...
Bhoomil Chavda's user avatar
0 votes
1 answer
506 views

here https://blog.packagecloud.io/eng/2017/02/06/monitoring-tuning-linux-networking-stack-sending-data/#queuing-disciplines it is written: As you’ll see from the previous post, the NET_TX_SOFTIRQ ...
Gilgamesz's user avatar
  • 5,183
1 vote
2 answers
2k views

We found a performance degradation issue when doing linux uplift from kernel 3.4 to 4.1 version. Seems, it is caused by that the new kernel spends much more time to service softirqs. We did a test ...
Sergey Morozov's user avatar
1 vote
1 answer
1k views

I am trying to disable irq calls from kernel while executing some application, i am calling local_irq_disable() before executing my application is that sufficient to disable the IRQ flags. Is any ...
Ashokkumar's user avatar
1 vote
1 answer
2k views

I am running Windriver Linux on a MIPS (octeon) based hardware. Linux runs on 16 cores and we have koftirqd/0 to ksoftirq/15 running. I observe the following behavior of load balancing on high ...
vasudeva pavan kumar's user avatar
2 votes
1 answer
8k views

I am running a simple program in a client, it continue sending udp packet to a server. The interface of server is a multi-queue netcard, but I set its rx-flow-hash of udp4 to sd. So all packet will be ...
inszva's user avatar
  • 31
0 votes
1 answer
909 views

what does "current->pid" prints in below 2 case 1) Hard IRQ context 2) Soft IRQ context I know IRQ context and process context are different, and PID must be invalid in case of IRQ context. But ...
Gopinath's user avatar
  • 251
3 votes
1 answer
536 views

I am working on a performance improvement of a driver and should consider the possibility of deadlock. In a SoftIRQ context, spin_lock will be held and protect some variable. In this case, should I ...
Owen Kwon's user avatar
1 vote
1 answer
1k views

I write a code which rarely creates/removes objects (up to several thousands) but very frequently modifies them in soft IRQ context. These objects are also rarely read (and probably will also be ...
ababo's user avatar
  • 1,652
9 votes
1 answer
722 views

Similar to how system call works on int 0x80, is it possible to implement my own ISR inside kernel so that on softirq assume int 0x120 or with any other softirq Program Counter can jump from user ...
Samrat Das's user avatar
  • 1,948
3 votes
1 answer
3k views

Is it possible to pin a softirq, or any other bottom half to a processor. I have a doubt that this could be done from within a softirq code. But then inside a driver is it possible to pin a ...
Haswell's user avatar
  • 1,682
2 votes
0 answers
94 views

In __local_bh_enable, we have a WARN_ON_ONCE(!irqs_disabled()); I'm wondering what the purpose of this warning is -- I would imagine you would want to be able to renable bottomhalves when in say ...
John's user avatar
  • 3,540
0 votes
1 answer
184 views

in tasklet_action routine - while handling an entry from tasklet_vec list of core , we are atomically reading atomic_read(&t->count), i dont see any of its uses through out the routine, what ...
susheel pandey's user avatar
0 votes
2 answers
2k views

In linux Kernel implementation for ARM platform, deferred work in tasklet is added to percpu vec|vec_hi list. now while returning from ISR execution it goes to address deferred work in softirq and ...
susheel pandey's user avatar
0 votes
1 answer
2k views

Recently I study the Linux-Kernel-Development by Robert Love. There is a paragraph describes mechanism of softirq. The softirq handlers run with interrupts enabled and cannot sleep. While a ...
Anakin Tung's user avatar
0 votes
1 answer
119 views

There are two C++ processes, one thread in each process. The thread handles network traffic (Diameter) from 32 incoming TCP connections, parses it and forwards split messages via 32 outgoing TCP ...
Neighbour's user avatar
5 votes
2 answers
5k views

local_bh_disable disables the processing of bottom halves (softirqs). Softirqs are processed on either, interrupt return path, or by the ksoftirqd-(per cpu)-thread that will be woken up if the system ...
user2950911's user avatar
1 vote
1 answer
2k views

Both Linux 2.6 and 3.8. Linux setup as a router passing a 3 gig file Doing a top, %SI is high at 30%, but ksoftirqd is doing 0% CPU. So the question is "What thread is handling the softirq???" I've ...
user3119129's user avatar
0 votes
0 answers
204 views

Using taskset -c 1 with opencl program,it runs at the same speed that without use of it in four core machine. But the load with taskset is 13% without it 50%. I am using AMD drivers 13.12 in fedora ...
user1497250's user avatar
17 votes
1 answer
32k views

What makes the softirq so special that we use it for high frequency uses., like in network drivers and block drivers.
Virendra Kumar's user avatar
5 votes
1 answer
900 views

I am developing a kernel module that shares data structures between a softirq (netfilter pre-routing hook) and a user context (within an ioctl call). After reading this link, I know I need to disable ...
Mr. Beer's user avatar
  • 265
7 votes
2 answers
3k views

I would like to create my own softirq in linux kernel. Is it the right way to do that: In the init of the module I would like to trigger the softirq from I'll add a call to: 394 void open_softirq(...
0x90's user avatar
  • 41.4k
0 votes
1 answer
886 views

I have an IRQ which is using handle_level_irq(). Most of the time, the ISR requires that a bottom half be scheduled, but occasionally, it is able to determine it is spurious, and does not want to ...
John's user avatar
  • 3,540
27 votes
4 answers
40k views

While studying Linux interrupt handling I found that Tasklets and SoftIRQs are two different methods of performing "bottom half" (lesser priority work). I understand this (quite genuine need). ...
ultimate cause's user avatar
17 votes
3 answers
16k views

I know that there are process context and interrupt context but I don't understand when executing softirq or tasklet, which context is it run under. I have seen some people use the term "bottom-...
kai's user avatar
  • 1,231