Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2004 17:51:19 -0400 (EDT)
From:      Robert Watson <>
To:        Daniel Eriksson <>
Subject:   Re: Giant-free ahc?
Message-ID:  <>
In-Reply-To: <!~!>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

On Mon, 11 Oct 2004, Daniel Eriksson wrote:

> Is anyone working on fine-grained locking for the ahc driver? 
> I just upgraded one of my servers from UP to SMP, and noticed that
> *Giant showed up a lot when running top for processes accessing data on
> the SCSI discs. It could be a GIANT lock for some other resource of
> course, but since the ahc driver reports [GIANT-LOCKED] during boot, and
> since all the processes were accessing data on SCSI discs I just assumed
> it was waiting for a lock in the ahc driver. 

It could well be that there's a lot of contention on Giant for VFS and
disk I/O operations; however, top is unfortunately not a very good tool
for diagnosing that, as the services top uses to monitor the system
require Giant, increasing the chances of Giant contention being observed
by top.  Patches to reduce the use of Giant in sysctl() were recently
posted to a mailing list (arch@?) and it could well be that those patches
help reduce the Giant-related noise that top sees.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects      Principal Research Scientist, McAfee Research

Want to link to this message? Use this URL: <>