Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?

Liste des GroupesRevenir à c arch 
Sujet : Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?
De : sfuld (at) *nospam* alumni.cmu.edu.invalid (Stephen Fuld)
Groupes : comp.arch
Date : 20. May 2025, 19:35:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100ii13$2b6j8$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Mozilla Thunderbird
On 5/20/2025 10:42 AM, BGB wrote:
On 5/20/2025 9:49 AM, Stefan Monnier wrote:
You need RAM to make this work, and a few MB of HDD side cache isn't a huge
cost if one would have already needed the same stuff to make the HDD work.
>
Indeed, AFAIK, what we call "HDD cache" is actually just the RAM used
by the embedded CPU inside the drive for its operation.
I expect this is used to store the information about in-flight requests
(e.g. most importantly the data about the write requests received but
that haven't yet reached the platters), but I also expects it holds data
that happened to fly recently by the read-head, just in case.
>
 Probably.
Again, a caveat that my knowledge is pretty old, and may have been superseded.
The drive certainly needs some DRAM for its internal operations, but as has been pointed out, the cost of making this larger and using that extra for cache is pretty small.  I just checked and a current Seagate drive has 512 MB of cache.  That cache is used on both reads and writes.
For reads, the vendor can specify the max amount to prefetch, which then determines the number of segments the cache is divided into.  i.e. you might not want to cache the rest of the track since that might force not keeping the data from a previous read.  You can also specify the minimum to prefetch, which can be zero, which determines how soon the drive can move the heads for another request.
For writes, even if no write caching is allowed, the DRAM is used to accept the write data before the heads have arrived at the requested track and the disk has spun to the required sector.  This allows for a faster response in the case that the heads arrive on track in the "middle" of the requested write area so the drive can write the last part of the transfer to the disk before the first part. (i.e. you overlap the time to transfer the last part of the request to the disk with the rotation.)  Of course, if write caching is enabled, the DRAM is used to hold the write data until it can be written to the disk.

As I understand it, it is this, along with a certain amount of "read prefetch", which is granted, typically the data for the rest of the track as the drive spins around;
Perhaps.  See above.

And, keeping some copies of previously read content around, which can be read again from this cache if they happen to be requested.
 As I understand it, also more modern HDDs tend to be "density per area" rather than angular slices (as it was on much older HDDs and floppies, *), so there would be more sectors on outer tracks vs on inner tracks.
This has been done for well over 30 years.  It allows the disk capacity to be increased by about 1/3 without any increased cost of the disk, hence lowers cost per gigabyte of the disk.  Of course it requires an interface, such as, originally SCSI, but now also SATA that is block oriented not cyl/head/record oriented.
--
  - Stephen Fuld
(e-mail address disguised to prevent spam)

Date Sujet#  Auteur
10 May 25 * Is Parallel Programming Hard, And, If So, What Can You Do About It?195Thomas Koenig
11 May 25 +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?164MitchAlsup1
11 May 25 i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?163Al Kossow
12 May 25 i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?162Lawrence D'Oliveiro
12 May 25 i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?161MitchAlsup1
12 May 25 i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?160Lawrence D'Oliveiro
12 May 25 i    +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2MitchAlsup1
12 May 25 i    i`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
12 May 25 i    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?157Terje Mathisen
12 May 25 i     +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Anton Ertl
12 May 25 i     i+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
13 May 25 i     i`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
12 May 25 i     `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?153Lawrence D'Oliveiro
13 May 25 i      +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stefan Monnier
13 May 25 i      i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Lawrence D'Oliveiro
13 May 25 i      i +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stefan Monnier
13 May 25 i      i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
13 May 25 i      +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?147Anton Ertl
13 May 25 i      i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?146Lawrence D'Oliveiro
13 May 25 i      i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?145Stephen Fuld
14 May 25 i      i  +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?62Lawrence D'Oliveiro
14 May 25 i      i  i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?59Stephen Fuld
18 May 25 i      i  ii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?58Lawrence D'Oliveiro
19 May 25 i      i  ii +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?6Lynn Wheeler
19 May 25 i      i  ii i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?5Vir Campestris
19 May 25 i      i  ii i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stephen Fuld
20 May 25 i      i  ii i  +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Vir Campestris
21 May 25 i      i  ii i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lynn Wheeler
21 May 25 i      i  ii i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
19 May 25 i      i  ii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?51MitchAlsup1
20 May 25 i      i  ii  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?50MitchAlsup1
20 May 25 i      i  ii   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?49Lawrence D'Oliveiro
20 May 25 i      i  ii    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?48BGB
20 May 25 i      i  ii     +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?46Stefan Monnier
20 May 25 i      i  ii     i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
20 May 25 i      i  ii     ii`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
21 May 25 i      i  ii     i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?43Lawrence D'Oliveiro
21 May 25 i      i  ii     i +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?38BGB
21 May 25 i      i  ii     i i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?37Lawrence D'Oliveiro
21 May 25 i      i  ii     i i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?36Stephen Fuld
21 May 25 i      i  ii     i i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?35Anton Ertl
22 May 25 i      i  ii     i i   +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?33George Neuner
22 May 25 i      i  ii     i i   i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?32BGB
22 May 25 i      i  ii     i i   i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?31Torbjorn Lindgren
22 May 25 i      i  ii     i i   i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?30BGB
22 May 25 i      i  ii     i i   i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?29Lawrence D'Oliveiro
23 May 25 i      i  ii     i i   i    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?28BGB
23 May 25 i      i  ii     i i   i     +* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?25John Levine
23 May 25 i      i  ii     i i   i     i+* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?17MitchAlsup1
23 May 25 i      i  ii     i i   i     ii`* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?16Stephen Fuld
23 May 25 i      i  ii     i i   i     ii `* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?15MitchAlsup1
24 May 25 i      i  ii     i i   i     ii  +* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?12BGB
24 May 25 i      i  ii     i i   i     ii  i`* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?11BGB
24 May 25 i      i  ii     i i   i     ii  i +* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?4John Levine
24 May 25 i      i  ii     i i   i     ii  i i`* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?3Michael S
24 May 25 i      i  ii     i i   i     ii  i i `* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
26 May 25 i      i  ii     i i   i     ii  i i  `- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1Terje Mathisen
24 May 25 i      i  ii     i i   i     ii  i +* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?2MitchAlsup1
24 May 25 i      i  ii     i i   i     ii  i i`- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
25 May 25 i      i  ii     i i   i     ii  i `* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?4Lars Poulsen
25 May 25 i      i  ii     i i   i     ii  i  +- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1John Levine
25 May 25 i      i  ii     i i   i     ii  i  +- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
26 May 25 i      i  ii     i i   i     ii  i  `- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1MitchAlsup1
24 May 25 i      i  ii     i i   i     ii  `* Re: recycling2Brian G. Lucas
25 May 25 i      i  ii     i i   i     ii   `- Re: recycling1George Neuner
23 May 25 i      i  ii     i i   i     i`* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?7BGB
23 May 25 i      i  ii     i i   i     i `* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?6BGB
24 May 25 i      i  ii     i i   i     i  `* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?5BGB
24 May 25 i      i  ii     i i   i     i   +* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?3MitchAlsup1
24 May 25 i      i  ii     i i   i     i   i+- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
30 May 25 i      i  ii     i i   i     i   i`- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1Thomas Koenig
24 May 25 i      i  ii     i i   i     i   `- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
23 May 25 i      i  ii     i i   i     `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2jseigh
23 May 25 i      i  ii     i i   i      `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
22 May 25 i      i  ii     i i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Dan Cross
21 May 25 i      i  ii     i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stephen Fuld
21 May 25 i      i  ii     i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Lawrence D'Oliveiro
21 May 25 i      i  ii     i   +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
21 May 25 i      i  ii     i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
21 May 25 i      i  ii     `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
14 May 25 i      i  i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2John Levine
14 May 25 i      i  i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Thomas Koenig
23 May 25 i      i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?82Waldek Hebisch
23 May 25 i      i   +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?5Lawrence D'Oliveiro
23 May 25 i      i   i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4BGB
23 May 25 i      i   i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3MitchAlsup1
23 May 25 i      i   i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
24 May 25 i      i   i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
23 May 25 i      i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?76Stephen Fuld
23 May 25 i      i    +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?74Stefan Monnier
24 May 25 i      i    i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?69Stephen Fuld
25 May 25 i      i    ii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?68Waldek Hebisch
25 May 25 i      i    ii +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?45Stephen Fuld
25 May 25 i      i    ii i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?28MitchAlsup1
26 May 25 i      i    ii ii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?27Chris M. Thomasson
26 May 25 i      i    ii ii `* Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?26John Levine
26 May 25 i      i    ii ii  `* Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?25Stephen Fuld
26 May 25 i      i    ii ii   +* Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?23Stefan Monnier
26 May 25 i      i    ii ii   i+* Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?21John Levine
27 May 25 i      i    ii ii   ii+* Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?19Stephen Fuld
27 May 25 i      i    ii ii   iii`* Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?18Anton Ertl
28 May 25 i      i    ii ii   ii`- Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stefan Monnier
26 May 25 i      i    ii ii   i`- Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
26 May 25 i      i    ii ii   `- Re: fuzzy disks, Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
26 May 25 i      i    ii i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?6Stefan Monnier
26 May 25 i      i    ii i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lawrence D'Oliveiro
26 May 25 i      i    ii i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?8Waldek Hebisch
25 May 25 i      i    ii +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
26 May 25 i      i    ii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?21Anton Ertl
25 May 25 i      i    i`* Drive Caches (Re: Is Parallel Programming Hard, ...)4Lars Poulsen
23 May 25 i      i    `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
18 May 25 i      `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
19 May 25 +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?29quadibloc
21 May 25 `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal