From wcp@pelissero.de  Tue Sep 21 11:53:49 2004
Return-Path: <wcp@pelissero.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7C08516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 2004 11:53:49 +0000 (GMT)
Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9BF6143D46
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 2004 11:53:48 +0000 (GMT)
	(envelope-from wcp@pelissero.de)
Received: from hyde.home.loc (62.246.36.96) by webmail.tiscali.de (6.7.019)
        id 40FB89A0015B7842 for FreeBSD-gnats-submit@freebsd.org; Tue, 21 Sep 2004 13:53:47 +0200
Received: from hyde.home.loc (localhost [IPv6:::1])
	by hyde.home.loc (8.12.10/8.12.10) with ESMTP id i8LBsDZx000923
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 2004 13:54:13 +0200 (CEST)
	(envelope-from wcp@hyde.home.loc)
Received: (from wcp@localhost)
	by hyde.home.loc (8.12.10/8.12.6/Submit) id i8LBr8qh000891;
	Tue, 21 Sep 2004 13:53:08 +0200 (CEST)
	(envelope-from wcp)
Message-Id: <200409211153.i8LBr8qh000891@hyde.home.loc>
Date: Tue, 21 Sep 2004 13:53:08 +0200 (CEST)
From: "Walter C. Pelissero" <wcp@pelissero.de>
Reply-To: walter@pelissero.de
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: USB disk triggers swap activity
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71968
>Category:       kern
>Synopsis:       [usb] USB disk triggers swap activity
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 21 12:00:42 GMT 2004
>Closed-Date:    Tue Oct 05 13:51:18 GMT 2004
>Last-Modified:  Tue Oct 05 13:51:18 GMT 2004
>Originator:     Walter C. Pelissero
>Release:        FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD hyde.home.loc 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Tue Aug 24 10:06:14 CEST 2004 root@hyde.home.loc:/usr/src/sys/i386/compile/PCG-XG9 i386


	Sony Vaio PCG-XG9, LaCie 160G USB2 disk with UFS2 filesystem
	mounted automatically by amd.
>Description:
	When I do a substantial activity on a 160G USB2 disk the
	system starts an heavy ATA disk activity that looks like
	swapping because, even though there is still 50MB RAM
	available, the swap usage jumps up to 14% and then slowly
	reaches 17%.  Soon, one by one, the programs become
	irresponsive and the system grinds to a halt (but the ATA
	activity).  If I don't try it immediately, ssh from another
	node yields a connection timeout.  Needless to say the USB
	keyboard and mouse die immediately, while I can still use the
	trackpad on the laptop.
>How-To-Repeat:
	dd if=/dev/zero of=/path/to/the/usb/filesystem
>Fix:




>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: walter@pelissero.de
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/71968: USB disk triggers swap activity
Date: Thu, 30 Sep 2004 20:42:17 -0700

 --UHN/qo2QbUvPLonB
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Tue, Sep 21, 2004 at 01:53:08PM +0200, Walter C. Pelissero wrote:
 
 > 	Sony Vaio PCG-XG9, LaCie 160G USB2 disk with UFS2 filesystem
 > 	mounted automatically by amd.
 > >Description:
 > 	When I do a substantial activity on a 160G USB2 disk the
 > 	system starts an heavy ATA disk activity that looks like
 > 	swapping because, even though there is still 50MB RAM
 > 	available, the swap usage jumps up to 14% and then slowly
 > 	reaches 17%.  Soon, one by one, the programs become
 > 	irresponsive and the system grinds to a halt (but the ATA
 > 	activity).  If I don't try it immediately, ssh from another
 > 	node yields a connection timeout.  Needless to say the USB
 > 	keyboard and mouse die immediately, while I can still use the
 > 	trackpad on the laptop.
 > >How-To-Repeat:
 > 	dd if=/dev/zero of=/path/to/the/usb/filesystem
 
 Does the problem persist with 5.3?
 
 Does 'top' or 'ps' show any unusual activity?
 
 Kris
 
 --UHN/qo2QbUvPLonB
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (FreeBSD)
 
 iD8DBQFBXNIZWry0BWjoQKURAqgBAKDVveWa2qYudlPwPNQTbiqIIUfi9QCgw3GY
 lMA2MIbhHz7eTtoE3b3we7E=
 =i8k1
 -----END PGP SIGNATURE-----
 
 --UHN/qo2QbUvPLonB--

From: "Walter C. Pelissero" <walter@pelissero.de>
To: freebsd-gnats-submit@FreeBSD.org,
	Kris Kennaway <kris@obsecurity.org>, walter@pelissero.de
Cc:  
Subject: Re: kern/71968: [usb] USB disk triggers swap activity
Date: Tue, 5 Oct 2004 11:58:43 +0200

  > > 	Sony Vaio PCG-XG9, LaCie 160G USB2 disk with UFS2 filesystem
  > > 	mounted automatically by amd.
  > > >Description:
  > > 	When I do a substantial activity on a 160G USB2 disk the
  > > 	system starts an heavy ATA disk activity that looks like
  > > 	swapping because, even though there is still 50MB RAM
  > > 	available, the swap usage jumps up to 14% and then slowly
  > > 	reaches 17%.  Soon, one by one, the programs become
  > > 	irresponsive and the system grinds to a halt (but the ATA
  > > 	activity).  If I don't try it immediately, ssh from another
  > > 	node yields a connection timeout.  Needless to say the USB
  > > 	keyboard and mouse die immediately, while I can still use the
  > > 	trackpad on the laptop.
  > > >How-To-Repeat:
  > > 	dd if=/dev/zero of=/path/to/the/usb/filesystem
  > 
  > Does the problem persist with 5.3?
 
 Sorry for the late answer.  It took me a while to upgrade to
 5.3-BETA7.
 
 I don't seem to be able to reproduce the problem under the new system,
 so I'd consider this PR closed.
 
  > Does 'top' or 'ps' show any unusual activity?
  
 The swap stats above came indeed from top.  It was indeed unusual for
 me to see a stadily increasing swap allocation while still having 20%
 of RAM untouched.  In the meanwhile no process showed any substantial
 increase in size.
 
 -- 
 walter pelissero
 http://www.pelissero.de
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Oct 5 13:49:59 GMT 2004 
State-Changed-Why:  
Submitter says problem is gone on BETA7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71968 
>Unformatted:
