Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2016 12:51:18 +0000 (UTC)
From:      Kostya Berger <bergerkos@yahoo.co.uk>
To:        Ultima <ultima1252@gmail.com>, Eric van Gyzen <vangyzen@freebsd.org>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: Kernel memory leak with x11/nvidia-driver
Message-ID:  <587773574.2473890.1454590278967.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <CANJ8om59KQqpF4tDXJR0RO80SaUwXWFx9g%2BuPguRKLgAgmU_1A@mail.gmail.com>
References:  <CANJ8om59KQqpF4tDXJR0RO80SaUwXWFx9g%2BuPguRKLgAgmU_1A@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

Here are the results of the test you've suggested on my system (r293722), nvidia-driver-304-304.128 -- two runs with the break of 40 minutes:
active    inactive    wire    cache    free    total
85441    282221    280649    0    100455    748766
85488    282235    280655    0    100391    748769
85500    282240    280657    0    100372    748769
83226    283338    280692    0    101513    748769
82816    282439    280687    0    102827    748769
[14:01 - 1.52]
[kostya@notebook2 9] ~ $ >sudo sh test.sh

active    inactive    wire    cache    free    total
82280    302769    304025    0    58081    747155
82273    302783    304021    0    58081    747158
82247    302809    304021    0    58081    747158
82239    302816    304009    0    58094    747158
82076    302995    304010    0    58077    747158
82080    303002    304010    0    58066    747158
[15:44 - 1.52]

Hope this helps and you can see some tendency you're after. With kindest regards,
Kostya Berger
 
 

    On Thursday, 4 February 2016, 3:56, Ultima <ultima1252@gmail.com> wrote:
 

 Just tested your script, there is definitely a memory leak.

 I also ran into really weird behavior. Running your script
in tmux after starting and stopping an xorg session a few,
tmux completely froze in the session. Creating a new
window in the session was also completely frozen,
however this is only visually as commands still worked,
just showed a blank black screen.

Also unloading the kernel modules for
nvidia and nvidia-modeset (new as of 358.16ish) did
not free the memory.

On Wed, Feb 3, 2016 at 8:24 PM, Ultima <ultima1252@gmail.com> wrote:

>  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 <vangyzen@freebsd.org>
> 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
>> "
>>
>
>
_______________________________________________
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"



From owner-freebsd-current@freebsd.org  Thu Feb  4 15:13:19 2016
Return-Path: <owner-freebsd-current@freebsd.org>
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 D62ABA99508
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Thu,  4 Feb 2016 15:13:19 +0000 (UTC)
 (envelope-from jenkins-admin@FreeBSD.org)
Received: from jenkins-9.freebsd.org (jenkins-9.freebsd.org [8.8.178.209])
 by mx1.freebsd.org (Postfix) with ESMTP id C909D1092;
 Thu,  4 Feb 2016 15:13:19 +0000 (UTC)
 (envelope-from jenkins-admin@FreeBSD.org)
Received: from jenkins-9.freebsd.org (localhost [127.0.0.1])
 by jenkins-9.freebsd.org (Postfix) with ESMTP id 52AF916D6;
 Thu,  4 Feb 2016 15:13:19 +0000 (UTC)
Date: Thu, 4 Feb 2016 15:13:18 +0000 (GMT)
From: jenkins-admin@FreeBSD.org
To: jenkins-admin@FreeBSD.org, freebsd-current@FreeBSD.org
Message-ID: <1376646433.98.1454598798192.JavaMail.jenkins@jenkins-9.freebsd.org>
In-Reply-To: <250203174.95.1454586673710.JavaMail.jenkins@jenkins-9.freebsd.org>
References: <250203174.95.1454586673710.JavaMail.jenkins@jenkins-9.freebsd.org>
Subject: Jenkins build is back to stable : FreeBSD_HEAD #119
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Instance-Identity: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkKKb2VAfYQKfu1t7qk4nR5qzUBEI+UqT4BPec4qHVhqUy0FFdq50sMH+3y9bCDNOufctov6VqTNffZ3YXArnZK95YF0OX97fh+E9txYOUX1adc+TikcKjuYpHmL5dE62eaZTI+4A5jnRonskQ1PaoIFz0Kbu4mWzkFsmdiXTraGzomXq4cHUCATA2+K4eDYgjXEQI30z3GOMmmZ4t/+6QGk1cMb/BqMWHbn80AsRCb4tU7Hpd72XLDpsuO7YRP1Q0CjmNAuBOTj+sFiiOe6U9HpqOlQN+iFUvBdZo/ybuy5Kh71cAaYQNL68cYdZJ6binH/DkG3KY/fS7DFYAeuwjwIDAQAB
X-Jenkins-Job: FreeBSD_HEAD
X-Jenkins-Result: SUCCESS
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>,
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>,
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Feb 2016 15:13:19 -0000

See <https://jenkins.FreeBSD.org/job/FreeBSD_HEAD/119/>;



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?587773574.2473890.1454590278967.JavaMail.yahoo>