From: David Miller on 30 Nov 2006 16:00 From: Ingo Molnar <mingo(a)elte.hu> Date: Thu, 30 Nov 2006 21:49:08 +0100 > So i dont support the scheme proposed here, the blatant bending of the > priority scale towards the TCP workload. I don't support this scheme either ;-) That's why my proposal is to find a way to allow input packet processing even during tcp_recvmsg() work. It is a solution that would give the TCP task exactly it's time slice, no more, no less, without the erroneous behavior of sleeping with packets held in the socket backlog. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Wenji Wu on 1 Dec 2006 03:41 >if you still have the test-setup, could you nevertheless try setting the >priority of the receiving TCP task to nice -20 and see what kind of >performance you get? A process with nice of -20 can easily get the interactivity status. When it expires, it still go back to the active array. It just hide the TCP problem, instead of solving it. For a process with nice value of -20, it will have the following advantages over other processes: (1) its timeslice is 800ms, the timeslice of a process with a nice value of 0 is 100ms (2) it has higher priority than other processes (3) it is easier to gain the interactivity status. The chances that the process expires and moves to the expired array with packets within backlog is much reduces, but still has the chance. wenji - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Evgeniy Polyakov on 1 Dec 2006 05:00 On Thu, Nov 30, 2006 at 12:14:43PM -0800, David Miller (davem(a)davemloft.net) wrote: > > It steals timeslices from other processes to complete tcp_recvmsg() > > task, and only when it does it for too long, it will be preempted. > > Processing backlog queue on behalf of need_resched() will break > > fairness too - processing itself can take a lot of time, so process > > can be scheduled away in that part too. > > Yes, at this point I agree with this analysis. > > Currently I am therefore advocating some way to allow > full input packet handling even amidst tcp_recvmsg() > processing. Isn't it a step in direction of full tcp processing bound to process context? :) -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
First
|
Prev
|
Pages: 1 2 3 4 5 6 7 Prev: Add IDE mode support for SB600 SATA Next: 2.6 driver for Silan SC92031 (second try) |