Deutsch English Français Italiano |
<vvs343$ulkk$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Terje Mathisen <terje.mathisen@tmsw.no> Newsgroups: comp.arch Subject: Re: Is Parallel Programming Hard, And, If So, What Can You Do About It? Date: Mon, 12 May 2025 08:05:56 +0200 Organization: A noiseless patient Spider Lines: 35 Message-ID: <vvs343$ulkk$1@dont-email.me> References: <vvnds6$3gism$1@dont-email.me> <edb59b7854474033c748f0fd668badaa@www.novabbs.org> <w32UP.481123$C51b.217868@fx17.iad> <vvqdas$g9oh$1@dont-email.me> <vvrcs9$msmc$2@dont-email.me> <0ec5d195f4732e6c92da77b7e2fa986d@www.novabbs.org> <vvribg$npn4$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Date: Mon, 12 May 2025 08:05:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="c1ae48fabd126cb4576e3e27da7ee8f9"; logging-data="1005204"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4AmsBN9l5veoXALcx89crhxeGDQJd+RuymUwGA9NjLw==" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 SeaMonkey/2.53.20 Cancel-Lock: sha1:6MtQuRdA0htTrQVeXlmnrcd1dWA= In-Reply-To: <vvribg$npn4$1@dont-email.me> Bytes: 2577 Lawrence D'Oliveiro wrote: > On Mon, 12 May 2025 00:30:37 +0000, MitchAlsup1 wrote: >=20 >> On Sun, 11 May 2025 23:46:17 +0000, Lawrence D'Oliveiro wrote: >> >>> That=C3=A2=E2=82=AC=E2=84=A2s why we have memory caches. >> >> Which architects tend to only understand what happens when these cache= s >> are attached to CPUs and not "Joe Random Bus Master", >=20 > One of my pet peeves is disk drives with memory caches in them. Why? >=20 For reads it allows the disk to always read full sets of sectors, the=20 following blocks are likely to be needed soon anyway. For writes, as long as the drive has enough energy (maybe in the form of = spinning inertia, or a hefty cap?) the always be able to save the buffer = cache to spinning rust, it can allow operations to complete immediately, = or as soon as the data has been transferred into the disk cache. Since all disks are using linear sector (or 4K block?) addressing these=20 days, instead of head/cylinder/sector, a little bit of cache can help=20 hide the tiny time glitches when the disk has to reposition. Terje --=20 - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"