Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3477429imc; Wed, 13 Mar 2019 20:20:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkAZbR7K6fTHEDSPMtUa+I3BBTVNmq9IU3gBKgKYUOHpPIzIfGLroiS42EPq9EX3GRIUo9 X-Received: by 2002:a63:2b03:: with SMTP id r3mr7769844pgr.1.1552533614296; Wed, 13 Mar 2019 20:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552533614; cv=none; d=google.com; s=arc-20160816; b=mpit0+5tyewz6UnRyRcaHxyaxR0xGc2U1lXU4J00i1JpqhAdPKvxyuyNifI1aQJxT/ AMR7vXnexu+LatePl3JVKDdB7kC+Hsxjb/y2+yQCK3XeS2kkzwDrFRLoozgkJ8Dy+RZo xKk7rX9MYDyz3Tf9dPmmcuVjAKugAdC7wTHOPfPJx8Lt1/VKUX4L5HQjZm5MEXBwbrdf B89zfJU2pfwUJszXGpboRyVZL81RvKYuUTP6b1vU7W7Db1WRRtYlZBzBzPQdfFozxO7W NzwZLNwgFQnYhOwMAR+M61fBgozUkHFnQnYuP7zvj5FGU6WS2xx9wdlMYQXNNWGkAR7Z BLIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=8/FESUTll/7HXtBTMTTiOUp3okh43kK5SAPTWHHLwRg=; b=O/POldUTzfjPJRpGA9fXfnXrQIhSytFtwnhnugDGIVADY1UaJU3ZtaJ62817Mxm78g Zha8QhjG5Cr91Tlxz+qAY51yWNd2ibqdjxukIocv4iAuOnpD4zjExvpliKYjcTTH/OkT o1yXLe/MDVYF5c9TgWBkP39FUFqurtv0D3CiAaO4oWZmnMJuv0SVbRk9kd0rHurMliXZ NxOPZExVWoWYoRVA/O9+zYN2eKK6DIfZ0x8NvKNZnPYM4tmxaauQaTlKz5lHSRAwU7wy kmlVc2zMvOD9ifyHTkxk8Q7TTmFOaL6hZ4croG45c24DoRUzlBqp7wiFT1oclY/lWjzS u5Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=bMYCIroi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si11372748pgi.76.2019.03.13.20.19.58; Wed, 13 Mar 2019 20:20:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=bMYCIroi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727076AbfCNDTc (ORCPT + 99 others); Wed, 13 Mar 2019 23:19:32 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:16784 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfCNDTc (ORCPT ); Wed, 13 Mar 2019 23:19:32 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 13 Mar 2019 20:19:33 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 13 Mar 2019 20:19:31 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 13 Mar 2019 20:19:31 -0700 Received: from [10.2.175.16] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 14 Mar 2019 03:19:31 +0000 Subject: Re: [PATCH v3 1/1] mm: introduce put_user_page*(), placeholder versions To: Ira Weiny CC: , Andrew Morton , , Al Viro , Christian Benvenuti , Christoph Hellwig , Christopher Lameter , Dan Williams , Dave Chinner , Dennis Dalessandro , Doug Ledford , Jan Kara , Jason Gunthorpe , Jerome Glisse , Matthew Wilcox , Michal Hocko , Mike Rapoport , Mike Marciniszyn , Ralph Campbell , Tom Talpey , LKML , References: <20190306235455.26348-1-jhubbard@nvidia.com> <20190306235455.26348-2-jhubbard@nvidia.com> <20190312153033.GG1119@iweiny-DESK2.sc.intel.com> <20190313144941.GA23350@iweiny-DESK2.sc.intel.com> X-Nvconfidentiality: public From: John Hubbard Message-ID: Date: Wed, 13 Mar 2019 20:19:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190313144941.GA23350@iweiny-DESK2.sc.intel.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1552533573; bh=8/FESUTll/7HXtBTMTTiOUp3okh43kK5SAPTWHHLwRg=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=bMYCIroiLhtLgP5RD406L4RZ9r+wOTIToldbo1EQJPFCYWmUfroe4suZ8m8ZDjJ8l VM21eJpIEFgno268ZPf359z+FDlWnEPginnpJomfLAtcu3GXvZlEkc0/ArWh91XvUs CRtEw+YPsXaorRoLfYMwizU/eZgKRRjFcVefqF8p98v0mWlXbXTRG3cDqYFJe3MaTZ eRogMcX3yIHOwOPTW0rrOEv+87wsuLkV3o/IrZ1s9EqPFjf21c+4R8GfVU9O0LEisw Q1W1wYAS6UWtj2f/ceWun2FGe8t4WK5H3QQrAoyrhTwfh4V9+oUeWSvJklWMdKIelY 5tc/s+hECaeUw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/13/19 7:49 AM, Ira Weiny wrote: > On Tue, Mar 12, 2019 at 05:38:55PM -0700, John Hubbard wrote: >> On 3/12/19 8:30 AM, Ira Weiny wrote: >>> On Wed, Mar 06, 2019 at 03:54:55PM -0800, john.hubbard@gmail.com wrote: >>>> From: John Hubbard >>>> >>>> Introduces put_user_page(), which simply calls put_page(). >>>> This provides a way to update all get_user_pages*() callers, >>>> so that they call put_user_page(), instead of put_page(). >>> >>> So I've been running with these patches for a while but today while ramping up >>> my testing I hit the following: >>> >>> [ 1355.557819] ------------[ cut here ]------------ >>> [ 1355.563436] get_user_pages pin count overflowed >> >> Hi Ira, >> >> Thanks for reporting this. That overflow, at face value, means that we've >> used more than the 22 bits worth of gup pin counts, so about 4 million pins >> of the same page... > > This is my bug in the patches I'm playing with. Somehow I'm causing more puts > than gets... I'm not sure how but this is for sure my problem. > > Backing off to your patch set the numbers are good. Now that's a welcome bit of good news! > > Sorry for the noise. > > With the testing I've done today I feel comfortable adding > > Tested-by: Ira Weiny > > For the main GUP and InfiniBand patches. > > Ira > OK, I'll add your tested-by tag to patches 1, 2, 4, 5 (the numbering refers to the "RFC v2: mm: gup/dma tracking" posting [1]) in my repo [2], and they'll show up in the next posting. (Patch 3 is already upstream, and patch 6 is documentation that needs to be rewritten entirely.) [1] https://lore.kernel.org/r/20190204052135.25784-1-jhubbard@nvidia.com [2] https://github.com/johnhubbard/linux/tree/gup_dma_core thanks, -- John Hubbard NVIDIA