From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbdAaQxj (ORCPT ); Tue, 31 Jan 2017 11:53:39 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:45130 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbdAaQxb (ORCPT ); Tue, 31 Jan 2017 11:53:31 -0500 X-IronPort-AV: E=Sophos;i="5.33,315,1477958400"; d="scan'208";a="671030920" Subject: Re: [PATCH v2] xen-netfront: Fix Rx stall during network stress and OOM To: Boris Ostrovsky References: <1484771149-12699-1-git-send-email-vineethp@u480fcf3b67f557f68df1.ant.amazon.com> <66b10c64-936a-8001-6855-2ff1ed626642@amazon.com> <38ccfaea-0a65-a6f3-c19a-e6f9c0d4ef76@oracle.com> <989bd104-13a9-f25f-b857-24ec49781f9c@amazon.com> CC: , David Miller , , Wei Liu , Paul Durrant , xen-devel From: Vineeth Remanan Pillai Message-ID: <7780bf0c-9fd0-1abf-77d3-983f5e6c4e08@amazon.com> Date: Tue, 31 Jan 2017 08:47:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <989bd104-13a9-f25f-b857-24ec49781f9c@amazon.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.43.161.164] X-ClientProxiedBy: EX13D10UWA002.ant.amazon.com (10.43.160.228) To EX13D08UWC003.ant.amazon.com (10.43.162.21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/30/2017 08:47 AM, Vineeth Remanan Pillai wrote: > > On 01/29/2017 03:09 PM, Boris Ostrovsky wrote: >> >> There are couple of problems with this patch. >> 1. The 'if' clause now evaluates to true on pretty much every call to >> xennet_alloc_rx_buffers(). > Thanks for catching this. In my testing I did not notice this - mostly > because of the nature of the workload in my testing. I am working on a patch to revert to the old behavior and solve the Rx stall issue by scheduling the timer if any of the following conditions are true: - unconsumed requests + new requests < NET_RX_SLOTS_MIN (old behavior) - skb allocations fail Will send out the patch by next week after I can do some testing. Thanks, Vineeth