From owner-freebsd-current@freebsd.org Thu Feb 4 01:24:47 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 802C2A9A75C for ; Thu, 4 Feb 2016 01:24:47 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0:400c:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C30FB11; Thu, 4 Feb 2016 01:24:47 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: by mail-vk0-x236.google.com with SMTP id e64so27803182vkg.0; Wed, 03 Feb 2016 17:24:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hw+eqclWFgrrh69Z7+ogDbNDGG4zw9argJFSAb7yBNE=; b=0wLxuo8Lqofi3TXzcafx4ohOSyA+YmhlZPlx9WAOOs4JDUIRueW/B2wb/LbrM+Xdeb E20umYnlxTpsyF1FHJ6toLfoZaqgpgddIpjayQY1aA7mzCOogEz0EKnb6qKjPh0sES6l xeO3liCQGCiRI4KdCsoBCkgK8PJDn9g2suIS3tn/wnOALiu/Q9ozxEGbFe0l5iuoPoQq I3+9hvmwUSM9gYMQ1mSfDVuFDoaOaq5pz5y2IpaDBLom9yio9I4JSvOFmLlSkanUYjJ/ k/sG39TKwFUKFpPJTrFh80BlaMOR8nCthvXktRTDKxAtxLD0/qJqvUr9gPGiAh6x8WB0 S/2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=hw+eqclWFgrrh69Z7+ogDbNDGG4zw9argJFSAb7yBNE=; b=N7I6RIQ5E68zsKCTig+BeZ+F8j4IfhgtM8qL77BH5Ldf+hhi0uD1AWaSXwqSrvOyD9 /mxKKwvFCKyvRvu7+xEgMwImwrn5SSRGbQPg4AYH4pAdstRugitZNU0ik5EiHAIKeCSF 36aYW4zoSERXfcny4RaGhsXWE+/pAfpLwgLbp/5uWvy8MvKyu5edn+WDSOcPCnvu44qd KWK+8KnFw++68QWHR4Qg2zt3gduDVeXdPSRZHDNkVzbpgin8AJxxq+f00bK1kAgjNhmY n/cDw6Q60GFuh6JuwY2VTb1ZI7DNH2OGW2qVVkcCwUEMam2HaXZVjpAZUXYk1tuwpX66 RQVw== X-Gm-Message-State: AG10YOTvGJ/bbVr5g024TqFjnbF8/acdM4Z3aOjDsVSXYZ9Z54S6LWDQ5OLqXPf2NY6ki46oTwfdNMbpnK0lMg== MIME-Version: 1.0 X-Received: by 10.31.41.14 with SMTP id p14mr3569113vkp.151.1454549086300; Wed, 03 Feb 2016 17:24:46 -0800 (PST) Received: by 10.31.194.194 with HTTP; Wed, 3 Feb 2016 17:24:46 -0800 (PST) In-Reply-To: <56B257E1.9070000@FreeBSD.org> References: <56B230CB.3050600@FreeBSD.org> <56B257E1.9070000@FreeBSD.org> Date: Wed, 3 Feb 2016 20:24:46 -0500 Message-ID: Subject: Re: Kernel memory leak with x11/nvidia-driver From: Ultima To: Eric van Gyzen Cc: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 01:24:47 -0000 Apologies, this should have been in my initial reply. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201340 or here for attachment https://bz-attachments.freebsd.org/attachment.cgi?id=165694 I haven't actually had a chance to do anything after upgrading from stable other than see the corrupted console for myself. Lack of time =/ On Wed, Feb 3, 2016 at 2:41 PM, Eric van Gyzen wrote: > On 02/03/2016 10:54, Eric van Gyzen wrote: > > I just set up a new desktop running head with x11/nvidia-driver. I've > > discovered a memory leak where pages disappear from the queues, never to > > return. Specifically, the total of > > v_active_count > > v_inactive_count > > v_wire_count > > v_cache_count > > v_free_count > > drops, eventually becoming /much/ less than v_page_count. > > Here is a script to log the data: > > #!/bin/sh > > readonly QUEUES="active inactive wire cache free total" > readonly FORMAT="%s\t%s\t%s\t%s\t%s\t%s\n" > > vm_page_counts() { > for queue in $QUEUES; do > if [ "$queue" != "total" ]; then > sysctl -n vm.stats.vm.v_${queue}_count > fi > done > } > > sum() { > s=0 > while [ $# -gt 0 ]; do > s=$((s + $1)) > shift > done > echo $s > } > > print_counts() { > counts="`vm_page_counts`" > printf "$FORMAT" $counts `sum $counts` > } > > printf "$FORMAT" $QUEUES > print_counts > while sleep 60; do > print_counts > done > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >