Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 23 Feb 2012 18:22:34 -0600 Date: Thu, 23 Feb 2012 16:22:33 -0800 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: O.T. optimising file placement References: <3gm7k7lgroqn30g0nd7lqgsqo60hq02em1@4ax.com> <4f45a713$0$291$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 24 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.206.198 X-Trace: sv3-0g5XatO0ER1vk/GKjzfZ+5gV9zo9NbI6f3ek6vAMRV3vVqjmw4FyLkvbrJbUnQXx4Vn/1G8mdoE4MDG!eH7CuSUTNuyB2fIuCeiklvFms5yM0wqmJoggAsJafabZD27A+uu84TnI+DBEKgVSiJMFCpMI2FrP!vSB3fDm0fMVjiQ1Sdt5cfG3LhLy9hRncLwohT3ypLf+6Pag= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2326 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12288 On 2/23/2012 3:16 PM, Martin Gregorie wrote: > On Wed, 22 Feb 2012 21:40:19 -0500, Arne Vajhøj wrote: > >> >> Most OS'es support async IO. >> > Yes, I know, but its not relevant to a single-threaded process since its > logic generally requires it to wait for a read or write to complete > before it continues[1]. Hence my comment that this prevents head movement > being optimized unless a lot of processes are active because there's only > one outstanding IOP per process. > > [1] unless you're deliberately doing async i/o using poll() or > select() (in C) or nio (in Java), in which case the process is often > best regarded as a half-way house between single and multi-threaded > logic. > > Last time I looked at operating system internals, there was a lot of prefetch logic that could generate multiple parallel requests from a one-at-a-time sequence. Patricia