Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754872Ab3FRI6K (ORCPT ); Tue, 18 Jun 2013 04:58:10 -0400 Received: from mga14.intel.com ([143.182.124.37]:30052 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753798Ab3FRI6G (ORCPT ); Tue, 18 Jun 2013 04:58:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,887,1363158000"; d="scan'208";a="318701433" From: Eliezer Tamir Subject: [PATCH v2 net-next 0/1] net: lls select poll support To: David Miller Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jesse Brandeburg , Don Skidmore , e1000-devel@lists.sourceforge.net, Willem de Bruijn , Eric Dumazet , Ben Hutchings , Andi Kleen , HPA , Eilon Greenstien , Or Gerlitz , Amir Vadai , Alex Rosenbaum , Avner Ben Hanoch , Or Kehati , sockperf-dev@googlegroups.com, Eliezer Tamir Date: Tue, 18 Jun 2013 11:57:59 +0300 Message-ID: <20130618085759.10941.15811.stgit@ladj378.jer.intel.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1502 Lines: 44 David, Here is a rework of the select/poll patch. (I called this a v2 but we are continuing where we left off in v9 of the original series.) One question: do we need in sock_poll() to test that sock->sk is not null? (Thanks to Willem de Bruijn for pointing this out.) When select or poll are used on a lot of sockets the sysctl value needs to be set higher than 50. For 300 sockets a setting of 100 works for me. For 1000 sockets a setting of 200 works well but the gain is very small, probably not worth it. I should mention that unlike the version we had in v9, with this version of the patch, LLS always performs better than no LLS. -Eliezer Change log: v2 - added POLL_LL flag, used to signal between the syscalls and sock_poll(). - add a separate ll_end_time() function to be used from poll. - slight reorder of sk_poll_ll so the timing primitives are not used when called from sock_poll(). - select/poll stop busy polling as soon as there is something to return to the user. Change log from the original LLS patch series: v9 - better mask testing in sock_poll(), reported by Eric Dumazet. v8 - split out udp and select/poll into separate patches. what used to be patch 2/5 is now three patches. v5 - added simple poll/select support -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/