[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20101108.134444.242133347.davem@davemloft.net>
Date: Mon, 08 Nov 2010 13:44:44 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, davidel@...ilserver.org,
alban.crequy@...labora.co.uk
Subject: Re: [PATCH 2/2] af_unix: optimize unix_dgram_poll()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sun, 31 Oct 2010 16:38:25 +0100
> unix_dgram_poll() is pretty expensive to check POLLOUT status, because
> it has to lock the socket to get its peer, take a reference on the peer
> to check its receive queue status, and queue another poll_wait on
> peer_wait. This all can be avoided if the process calling
> unix_dgram_poll() is not interested in POLLOUT status. It makes
> unix_dgram_recvmsg() faster by not queueing irrelevant pollers in
> peer_wait.
>
> On a test program provided by Alan Crequy :
>
> Before:
>
> real 0m0.211s
> user 0m0.000s
> sys 0m0.208s
>
> After:
>
> real 0m0.044s
> user 0m0.000s
> sys 0m0.040s
>
> Suggested-by: Davide Libenzi <davidel@...ilserver.org>
> Reported-by: Alban Crequy <alban.crequy@...labora.co.uk>
> Acked-by: Davide Libenzi <davidel@...ilserver.org>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists