From: "Jesse Brandeburg" Subject: Re: e1000 driver 2.6.18 - how to waste processor cycles Date: Thu, 9 Nov 2006 14:45:34 -0800 Message-ID: <4807377b0611091445s11575f5ej15c7bf7126bb5658@mail.gmail.com> References: <45524E3A.7080301@soleranetworks.com> <4807377b0611081701i26ee7ce0k1f822dbbe52c2c8@mail.gmail.com> <4552EAFC.5060400@soleranetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Linux kernel" , "NetDEV list" Return-path: Received: from ug-out-1314.google.com ([66.249.92.172]:13885 "EHLO ug-out-1314.google.com") by vger.kernel.org with ESMTP id S1424215AbWKIWpg (ORCPT ); Thu, 9 Nov 2006 17:45:36 -0500 Received: by ug-out-1314.google.com with SMTP id m3so369897ugc for ; Thu, 09 Nov 2006 14:45:35 -0800 (PST) To: "Jeffrey V. Merkey" In-Reply-To: <4552EAFC.5060400@soleranetworks.com> Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 11/9/06, Jeffrey V. Merkey wrote: > In the case I am referring to, the memory is already mapped with a > previous call, which means it may be getting > mapped twice. I guess maybe I'm not keeping up with you. This is what I see looking in 2.6.18, i see e1000_clean_rx_irq: check done bit pci_unmap_single copybreak and recycle OR hand buffer up stack the only branch before the unmap is the napi break out, and in that case we don't change any memory state, so alloc will not do anything. As for alloc rx, we always map, because we always unmapped. Did I miss something? I would appreciate a more detailed explanation of what you see going wrong.