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_at_?) 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 robert_at_fledge.watson.org Principal Research Scientist, McAfee ResearchReceived on Mon Oct 11 2004 - 19:52:53 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC