Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2002 02:03:05 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Alfred Perlstein <bright@mu.org>
Cc:        smp@freebsd.org
Subject:   RE: witness speedups?
Message-ID:  <XFMail.020114020305.jhb@FreeBSD.org>
In-Reply-To: <20020113160442.U7984@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 14-Jan-02 Alfred Perlstein wrote:
> Is there anything you can do to speed up witness a bit?
> 
> Can't you add some table structures for things like find_instance()
> to reduce the overhead of witness?

You can use WITNESS_SKIPSPIN to turn off checking on spinlocks which should
help a bit since they are acquried fairly often.  What table structures do you
mean for find_instance()?  find_instance() is basically searching a per-thread
linked-list of held locks (well, not a true linked-list since it uses buckets
to try and save on memory).

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020114020305.jhb>