From owner-freebsd-questions@FreeBSD.ORG Thu Mar 11 23:14:23 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B19E106566B for ; Thu, 11 Mar 2010 23:14:23 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by mx1.freebsd.org (Postfix) with ESMTP id 72E1C8FC15 for ; Thu, 11 Mar 2010 23:14:23 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KZ500G9J4JHFU60@asmtp030.mac.com> for freebsd-questions@freebsd.org; Thu, 11 Mar 2010 15:14:06 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1003110221 From: Chuck Swiger In-reply-to: <4B997730.8070009@gmail.com> Date: Thu, 11 Mar 2010 15:14:05 -0800 Message-id: References: <4B952B38.70308@gmail.com> <4B997730.8070009@gmail.com> To: David Jackson X-Mailer: Apple Mail (2.1077) Cc: freebsd-questions@freebsd.org Subject: Re: Severe instabilities and system lockups X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 23:14:23 -0000 On Mar 11, 2010, at 3:05 PM, David Jackson wrote: [ ... ] > I seem to have also discovered that the lockup problems are not entirely due to USB issues. Many of them were being caused by an apparent problem with the swap system. I have two swaps, a file backed swap and a partition swap on the same disk. Apparently when having two swaps on the disk there are severe performance problems. FreeBSD needs to fix whatever is causing this thrashing problem. You're going to notice performance problems if you are paging heavily regardless of other factors. And the fine documentation recommends placing only one swap partition per disk (or controller): http://www.freebsd.org/doc/handbook/configtuning-initial.html "On larger systems with multiple SCSI disks (or multiple IDE disks operating on different controllers), it is recommend that a swap is configured on each drive (up to four drives). The swap partitions should be approximately the same size. The kernel can handle arbitrary sizes but internal data structures scale to 4 times the largest swap partition. Keeping the swap partitions near the same size will allow the kernel to optimally stripe swap space across disks." It might be reasonable for swapon to log or print a warning if it notices multiple swap partitions (or swapfiles) on the same underlying hardware device.... Regards, -- -Chuck