From owner-freebsd-current@freebsd.org Thu Feb 4 12:52:41 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 E0E95A9B11E for ; Thu, 4 Feb 2016 12:52:41 +0000 (UTC) (envelope-from bergerkos@yahoo.co.uk) Received: from nm14-vm9.bullet.mail.ir2.yahoo.com (nm14-vm9.bullet.mail.ir2.yahoo.com [212.82.96.197]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 30C14DA for ; Thu, 4 Feb 2016 12:52:40 +0000 (UTC) (envelope-from bergerkos@yahoo.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1454590351; bh=tRcvanNoz/mDFDrh9bBilXdQ5g7JNra1SZGDcfXJjaM=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=k0LkKiT2XHnJn8qRTXpuTeP0OV5tSqBS9XI+36OuecoyxCVjoL0vZvV8o5iRxB8faZbp3ObE+D6C2QWHFmNdmPznNImqSpFn+kIv8VPckt3LT7wz7hUFWkB7JY6AUT9GEh/1I0m4rolnFYQlL4VWiw7AEgXoC5s/wNfyEJtujh/1GK9I920SxafIJwvo0zMcefFrA+cG/wloUTAO7/hGblYKqKByRQR0FJA4pArw4yXeL+8g9S8p53yPnAcJ9I7hnSjs5smHwE78zO3bvUuHYCwCh7HeerRx8Dz5X3T7Evn6MzeeuWDHs7MW2sNYenH1DxVwRe7GTVFcu+er9K6Xcg== Received: from [212.82.98.62] by nm14.bullet.mail.ir2.yahoo.com with NNFMP; 04 Feb 2016 12:52:31 -0000 Received: from [212.82.98.113] by tm15.bullet.mail.ir2.yahoo.com with NNFMP; 04 Feb 2016 12:52:31 -0000 Received: from [127.0.0.1] by omp1050.mail.ir2.yahoo.com with NNFMP; 04 Feb 2016 12:52:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 342906.51642.bm@omp1050.mail.ir2.yahoo.com X-YMail-OSG: K99gcnMVM1mQR0Lw_07i2k_1eM7L37AMfDahSmhPqFNhSb4L7qfs5OgPiCcF29d fH43KN9anyvk9lK8Um2Z0F0w0x4icCRkShooX6xIr8AahqPFEqR3eUWmdDhv1vZ60NBFa3YAbxSg 6vml8_5UnHDmMEasNcQWhsyN77jsEyE7MkLCAMXt10eJe3hVVlMm0cf63HY3OIqVykMhi8NPqKiW N_SeKq5T0KlIBvnkbr.W0H_gsmd7vDF5ZPAGV7d4WchyPFt0EEASQloDcUcma39F71gzAl2_yIhq rmzgf_sc9BYwLW0vhNRl1mG5hZWePtsZWsj_VABTGMlKBXC2sBXmJYVlwUK3QCIfe5JFGXEYBv_Q hQ4A72sGSS_.TJQ5iELUCGsga6mDciP2kzNwcpaBRNnWv7p6ohpa4ugcY9lmXUq9zm1uv95aqRy1 G9CDbVwCNwyD.rDo4RBNWTjtk6Wr1PQ21koAD99eiyrOocTqM4BKxLzUY9zhsD4yAptjCgaZ0ZGX TyeLMa8afZQ-- Received: by 212.82.98.115; Thu, 04 Feb 2016 12:52:30 +0000 Date: Thu, 4 Feb 2016 12:51:18 +0000 (UTC) From: Kostya Berger Reply-To: Kostya Berger To: Ultima , Eric van Gyzen Cc: "freebsd-current@freebsd.org" Message-ID: <587773574.2473890.1454590278967.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: Kernel memory leak with x11/nvidia-driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 12:52:42 -0000 Here are the results of the test you've suggested on my system (r293722), n= vidia-driver-304-304.128 -- two runs with the break of 40 minutes: active=C2=A0=C2=A0=C2=A0 inactive=C2=A0=C2=A0=C2=A0 wire=C2=A0=C2=A0=C2=A0 = cache=C2=A0=C2=A0=C2=A0 free=C2=A0=C2=A0=C2=A0 total 85441=C2=A0=C2=A0=C2=A0 282221=C2=A0=C2=A0=C2=A0 280649=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 100455=C2=A0=C2=A0=C2=A0 748766 85488=C2=A0=C2=A0=C2=A0 282235=C2=A0=C2=A0=C2=A0 280655=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 100391=C2=A0=C2=A0=C2=A0 748769 85500=C2=A0=C2=A0=C2=A0 282240=C2=A0=C2=A0=C2=A0 280657=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 100372=C2=A0=C2=A0=C2=A0 748769 83226=C2=A0=C2=A0=C2=A0 283338=C2=A0=C2=A0=C2=A0 280692=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 101513=C2=A0=C2=A0=C2=A0 748769 82816=C2=A0=C2=A0=C2=A0 282439=C2=A0=C2=A0=C2=A0 280687=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 102827=C2=A0=C2=A0=C2=A0 748769 [14:01 - 1.52] [kostya@notebook2 9] ~ $ >sudo sh test.sh active=C2=A0=C2=A0=C2=A0 inactive=C2=A0=C2=A0=C2=A0 wire=C2=A0=C2=A0=C2=A0 = cache=C2=A0=C2=A0=C2=A0 free=C2=A0=C2=A0=C2=A0 total 82280=C2=A0=C2=A0=C2=A0 302769=C2=A0=C2=A0=C2=A0 304025=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 58081=C2=A0=C2=A0=C2=A0 747155 82273=C2=A0=C2=A0=C2=A0 302783=C2=A0=C2=A0=C2=A0 304021=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 58081=C2=A0=C2=A0=C2=A0 747158 82247=C2=A0=C2=A0=C2=A0 302809=C2=A0=C2=A0=C2=A0 304021=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 58081=C2=A0=C2=A0=C2=A0 747158 82239=C2=A0=C2=A0=C2=A0 302816=C2=A0=C2=A0=C2=A0 304009=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 58094=C2=A0=C2=A0=C2=A0 747158 82076=C2=A0=C2=A0=C2=A0 302995=C2=A0=C2=A0=C2=A0 304010=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 58077=C2=A0=C2=A0=C2=A0 747158 82080=C2=A0=C2=A0=C2=A0 303002=C2=A0=C2=A0=C2=A0 304010=C2=A0=C2=A0=C2=A0 0= =C2=A0=C2=A0=C2=A0 58066=C2=A0=C2=A0=C2=A0 747158 [15:44 - 1.52] Hope this helps and you can see some tendency you're after.=C2=A0With kinde= st regards, Kostya Berger =20 =20 On Thursday, 4 February 2016, 3:56, Ultima wrote= : =20 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 wrote: >=C2=A0 Apologies, this should have been in my initial reply. > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201340 > or here for attachment > https://bz-attachments.freebsd.org/attachment.cgi?id=3D165694 > > 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 =3D/ > > 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.=C2=A0= I've >> > discovered a memory leak where pages disappear from the queues, never = to >> > return.=C2=A0 Specifically, the total of >> >=C2=A0 =C2=A0 v_active_count >> >=C2=A0 =C2=A0 v_inactive_count >> >=C2=A0 =C2=A0 v_wire_count >> >=C2=A0 =C2=A0 v_cache_count >> >=C2=A0 =C2=A0 v_free_count >> > drops, eventually becoming /much/ less than v_page_count. >> >> Here is a script to log the data: >> >> #!/bin/sh >> >> readonly QUEUES=3D"active inactive wire cache free total" >> readonly FORMAT=3D"%s\t%s\t%s\t%s\t%s\t%s\n" >> >> vm_page_counts() { >>=C2=A0 =C2=A0 for queue in $QUEUES; do >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 if [ "$queue" !=3D "total" ]; then >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sysctl -n vm.stats.vm.v_${queue= }_count >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 fi >>=C2=A0 =C2=A0 done >> } >> >> sum() { >>=C2=A0 =C2=A0 s=3D0 >>=C2=A0 =C2=A0 while [ $# -gt 0 ]; do >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 s=3D$((s + $1)) >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 shift >>=C2=A0 =C2=A0 done >>=C2=A0 =C2=A0 echo $s >> } >> >> print_counts() { >>=C2=A0 =C2=A0 counts=3D"`vm_page_counts`" >>=C2=A0 =C2=A0 printf "$FORMAT" $counts `sum $counts` >> } >> >> printf "$FORMAT" $QUEUES >> print_counts >> while sleep 60; do >>=C2=A0 =C2=A0 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.or= g >> " >> > > _______________________________________________ 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: 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 ; 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 15:13:19 -0000 See