Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 1998 22:49:14 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        dot@dotat.at (Tony Finch)
Cc:        smp@FreeBSD.ORG
Subject:   Re: Pthreads and SMP
Message-ID:  <199812162249.PAA04662@usr09.primenet.com>
In-Reply-To: <E0zqIVn-0000OX-00@fanf.noc.demon.net> from "Tony Finch" at Dec 16, 98 03:05:15 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> >The select() mechanism and asynch io is also a viable, albeit conceptually
> >more difficult to implement for the average programmer.
> 
> The main problem with select() with disk IO is that you are still
> limited by seek times. Squid gets around this problem in the latest
> version by using threading, but this is no use if the threading libray
> is userland-only :-(

Explicitly ask for read ahead on things you will need in the future:

	madvise( ..., ..., MADV_SEQUENTIAL);
	madvise( ..., ..., MADV_WILLNEED);


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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?199812162249.PAA04662>