Date: Wed, 3 Feb 2016 13:41:21 -0600 From: Eric van Gyzen <vangyzen@FreeBSD.org> To: FreeBSD Current <freebsd-current@FreeBSD.org> Subject: Re: Kernel memory leak with x11/nvidia-driver Message-ID: <56B257E1.9070000@FreeBSD.org> In-Reply-To: <56B230CB.3050600@FreeBSD.org> References: <56B230CB.3050600@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56B257E1.9070000>