From owner-freebsd-current@FreeBSD.ORG Fri Jul 17 08:11:11 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30281106567B; Fri, 17 Jul 2009 08:11:11 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id BC3CB8FC15; Fri, 17 Jul 2009 08:11:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n6H8B5Im030645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Jul 2009 11:11:06 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n6H8B5Kf079464; Fri, 17 Jul 2009 11:11:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n6H8B5tv079463; Fri, 17 Jul 2009 11:11:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 17 Jul 2009 11:11:05 +0300 From: Kostik Belousov To: Rick Macklem Message-ID: <20090717081105.GQ55190@deviant.kiev.zoral.com.ua> References: <86zlb45px8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WHpPn4mHPEwODgSf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Anonymous , Rick Macklem , freebsd-current@freebsd.org Subject: Re: [newnfs/client] SIGINFO aborts transfer and produces `permission denied' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 17 Jul 2009 08:11:11 -0000 --WHpPn4mHPEwODgSf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 16, 2009 at 08:15:29PM -0400, Rick Macklem wrote: >=20 >=20 > On Fri, 17 Jul 2009, Anonymous wrote: >=20 > >Let's populate /blah with 50Mb files and send SIGINFO to cp(1) process= =20 > >while > >copying it over nfsv3. > > > ># uname -vm > >FreeBSD 8.0-BETA1 #0: Sat Jul 4 03:55:14 UTC 2009 > >root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > > ># mkdir /blah > ># truncate -s50m /blah/foo_1 > ># truncate -s50m /blah/foo_2 > ># truncate -s50m /blah/foo_3 > > > ># echo /usr >/etc/exports > ># /etc/rc.d/nfsd onestart > ># mount -t newnfs -o nfsv3 0:/blah /mnt > > > ># cp -R /mnt /aaa > >[type ^T several times] > >load: 0.81 cmd: cp 2305 [runnable] 1.86r 0.00u 0.62s 9% 1304k > >/mnt/foo_1 -> /aaa/foo_1 25% > >load: 0.90 cmd: cp 2305 [runnable] 2.43r 0.00u 0.80s 9% 1304k > >/mnt/foo_1 -> /aaa/foo_1 32% > >load: 0.90 cmd: cp 2305 [runnable] 2.59r 0.00u 0.85s 19% 1304k > >/mnt/foo_1 -> /aaa/foo_1 34% > >load: 0.90 cmd: cp 2305 [runnable] 2.76r 0.01u 0.89s 19% 1304k > >/mnt/foo_1 -> /aaa/foo_1 36% > >load: 0.90 cmd: cp 2305 [runnable] 2.96r 0.02u 0.94s 19% 1304k > >/mnt/foo_1 -> /aaa/foo_1 39% > >load: 0.90 cmd: cp 2305 [runnable] 3.14r 0.02u 1.00s 19% 1304k > >/mnt/foo_1 -> /aaa/foo_1 41% > >load: 0.90 cmd: cp 2305 [newnfsreq] 3.30r 0.02u 1.05s 19% 1304k > >load: 0.90 cmd: cp 2305 [runnable] 3.47r 0.02u 1.08s 19% 1304k > >load: 0.90 cmd: cp 2305 [runnable] 3.62r 0.02u 1.11s 19% 1304k > >load: 0.90 cmd: cp 2305 [runnable] 3.81r 0.02u 1.14s 19% 1304k > >load: 0.90 cmd: cp 2305 [runnable] 3.98r 0.02u 1.17s 19% 1304k > >load: 0.90 cmd: cp 2305 [runnable] 4.29r 0.02u 1.22s 19% 1304k > >load: 1.23 cmd: cp 2305 [runnable] 4.84r 0.02u 1.35s 19% 1304k > >load: 1.23 cmd: cp 2305 [runnable] 5.19r 0.02u 1.49s 19% 1304k > >load: 1.23 cmd: cp 2305 [runnable] 5.52r 0.02u 1.63s 19% 1304k > >load: 1.23 cmd: cp 2305 [runnable] 6.12r 0.02u 1.88s 19% 1304k > >load: 1.23 cmd: cp 2305 [runnable] 6.52r 0.02u 2.05s 19% 1304k > >load: 1.23 cmd: cp 2305 [runnable] 6.89r 0.02u 2.19s 19% 1304k > >load: 1.69 cmd: cp 2305 [runnable] 7.40r 0.02u 2.40s 29% 1304k > >load: 1.69 cmd: cp 2305 [runnable] 7.76r 0.02u 2.55s 29% 1304k > >load: 1.69 cmd: cp 2305 [runnable] 8.11r 0.02u 2.70s 29% 1304k > >cp: /mnt/foo_1: Permission denied > >cp: /mnt/foo_2: Permission denied > >cp: /mnt/foo_3: Permission denied > > > >This one should be slightly harder to reproduce. And depending on timing > >between each ^T keypress error message can differ, e.g. `Bad address' or > >`Input/output error'. Of course not all files end up in /aaa > > > > # ls -l /aaa > > total 32912 > > -rw-r--r-- 1 root wheel 33685504 Jul 16 20:26 foo_1 > >(this file is from different attempt, not that was aborted around 41%) > > > >It affects both foreground and background processes. So, to abort copying > >one can also try running > > > > # pkill -INFO cp > > > >several times. I haven't found any other signal that affect copying > >(tried SIGURG, SIGCONT, SIGCHLD, SIGIO, SIGWINCH). > > > >Known? Or am I the only one having a bad habit typing ^T too often? > > > Kostik recently checked in some changes related to signal handling, > but I haven't yet had time to clone that for the experimental client. The changes I did should only affect SIGSTOP. >=20 > If the problem doesn't occur for the regular client, then I'll guess > that cloning his changes to the experimental client will fix it. >=20 > rick >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --WHpPn4mHPEwODgSf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkpgMhkACgkQC3+MBN1Mb4gp0gCgiey0BJ1QpP8fL/BsNGM4SYsa bNsAn3uDo9xTeu9i6mh5Iz2ms91zPrnR =76A9 -----END PGP SIGNATURE----- --WHpPn4mHPEwODgSf--