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 : cr88192 (at) *nospam* gmail.com (BGB)
Groupes : comp.arch
Date : 20. May 2025, 06:16:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100h3jm$23ehu$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Mozilla Thunderbird
On 5/19/2025 7:36 PM, Lawrence D'Oliveiro wrote:
On Mon, 19 May 2025 23:33:42 +0000, MitchAlsup1 wrote:
 
On Mon, 19 May 2025 1:13:01 +0000, Lawrence D'Oliveiro wrote:
>
Filesystem cache turnover happens in times on the order of seconds, not
milliseconds.
>
Yes, running at the latency and bandwidth of the disk/SSD subsystem not
of the DRAM system.
 It’s not really about latency, it’s just about the way the filesystem
caches are used. They quite typically take up a big chunk of the RAM on a
server, and stuff does tend to hang around in them for several seconds, to
get good cache hits. (Though on Linux that’s considered a low-priority
use, so if a regular application needs more RAM and there isn’t enough
free, then the filesystem cache will be quickly flushed as necessary to
make more available.)
 And consider that modern high-performance servers are available with
terabytes of RAM. Fill a few tens of % of that with filesystem cache, and
you see why disk caches don’t stand a chance.
The caches serve different purposes.
The OS side cache is to serve local IO requests.
The HDD cache is AFAIK more to consolidate IO requests and to prefetch stuff, in a way where the HDD knows its geometry but the PC does not, and to keep up the abstraction of 512 byte sectors on physical media that is typically no longer using 512 byte sectors.
Across multiple media types, the abstractions have converged:
   Linearly addressed array of 512 byte sectors.
Vs, say:
   Cylinder/Head/Sector geometry;
   Variable sector sizes and variable numbers of sectors per track;
   Ability for the PC to not care if it is an HDD or SSD;
   ...
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.
At this point in time, would have a 512K RAM chip be cheaper than an 8 or 16MB RAM chip?... Not really.
Also the SATA interface is technically faster and has a higher bandwidth than it can actually read stuff from the HDD itself, so if the HDD's cache can do *anything* (in terms of prefetch and allowing IO requests to be completed more quickly) it is still a win.
And, then, the filesystem can continue on operating in terms of an abstract device without needing to be overly concerned with the physical geometry of the underlying HDD.
Well, or sometimes, the filesystems try to be too clever and actually make things worse.
Say, for example, if the FS tries to allocate files such that each starts on a multiple of 32K (with a 4K cluster size), but then C source files are often not so effective when spaced on multiples of 32K, and if it goes back later and reclaims these intermediate clusters, then the original files are not particularly densely packed, and a bunch of other random files are shoved between, ... Leading to worse performance than have the files simply been densely packed end-to-end in the first place.
Well, say, because the FS designers seem to casually assume smaller numbers of multi-MB files, rather than people filling the drive with millions of files most of which being kB sized.
Well, and if one has lots of files of this sort, often a 1K cluster size makes sense as less space will be wasted on partial blocks (in the absence of end-packing). But, then one also wants to have moderately compact directory entries and inodes.
Say:
   256 byte inode is good;
   1024 byte inode (cough, "MFT Entry") is waste;
   64 byte directory entry is good;
     Like, ~ 95..99% of filenames do not exceed 48 characters.
     Can special-case those that need more.
   256 to 512 bytes is waste;
     More so with the pointlessness of UTF-16 filenames.
     Better to optimize for the 99% case here, IMO.
     Vs, always provisioning for the worst case.
   ...
Though, does depend some on the relative cost though between constant overhead data, and file payload.
...

Date Sujet#  Auteur
10 May 25 * Is Parallel Programming Hard, And, If So, What Can You Do About It?91Thomas Koenig
11 May 25 +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?60MitchAlsup1
11 May 25 i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?59Al Kossow
12 May 25 i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?58Lawrence D'Oliveiro
12 May 25 i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?57MitchAlsup1
12 May 25 i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?56Lawrence 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?53Terje 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?49Lawrence 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?43Anton Ertl
13 May 25 i      i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?42Lawrence D'Oliveiro
13 May 25 i      i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?41Stephen Fuld
14 May 25 i      i  +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?36Lawrence D'Oliveiro
14 May 25 i      i  i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?33Stephen Fuld
18 May02:35 i      i  ii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?32Lawrence D'Oliveiro
19 May01:10 i      i  ii +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?6Lynn Wheeler
19 May21:46 i      i  ii i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?5Vir Campestris
19 May22:58 i      i  ii i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stephen Fuld
20 May11:22 i      i  ii i  +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Vir Campestris
21 May03:38 i      i  ii i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lynn Wheeler
21 May04:49 i      i  ii i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
19 May01:18 i      i  ii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?25MitchAlsup1
20 May00:33 i      i  ii  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?24MitchAlsup1
20 May01:36 i      i  ii   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?23Lawrence D'Oliveiro
20 May06:16 i      i  ii    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?22BGB
20 May15:49 i      i  ii     +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?20Stefan Monnier
20 May18:42 i      i  ii     i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
20 May19:35 i      i  ii     ii`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
21 May01:29 i      i  ii     i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?17Lawrence D'Oliveiro
21 May02:08 i      i  ii     i +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?12BGB
21 May04:46 i      i  ii     i i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?11Lawrence D'Oliveiro
21 May04:58 i      i  ii     i i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?10Stephen Fuld
21 May18:19 i      i  ii     i i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?9Anton Ertl
22 May03:19 i      i  ii     i i   +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?7George Neuner
22 May07:51 i      i  ii     i i   i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?6BGB
22 May13:12 i      i  ii     i i   i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?5Torbjorn Lindgren
22 May18:39 i      i  ii     i i   i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4BGB
22 May23:41 i      i  ii     i i   i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Lawrence D'Oliveiro
23 May00:36 i      i  ii     i i   i    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
23 May15:21 i      i  ii     i i   i     `- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1John Levine
22 May12:32 i      i  ii     i i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Dan Cross
21 May04:54 i      i  ii     i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stephen Fuld
21 May06:39 i      i  ii     i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Lawrence D'Oliveiro
21 May07:42 i      i  ii     i   +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
21 May08:08 i      i  ii     i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
21 May01:57 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 May01:18 i      i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Waldek Hebisch
23 May06:35 i      i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Lawrence D'Oliveiro
23 May07:09 i      i    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
23 May13:36 i      i     `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1MitchAlsup1
18 May00:57 i      `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
19 May22:33 +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?29quadibloc
20 May01:43 i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?28Lawrence D'Oliveiro
20 May19:19 i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?27BGB
20 May21:06 i  +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?23Stefan Monnier
20 May23:11 i  i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?20MitchAlsup1
21 May01:34 i  ii+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May02:00 i  ii+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May02:30 i  ii+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?8George Neuner
21 May02:39 i  iii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?7Chris M. Thomasson
21 May04:41 i  iii +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Lawrence D'Oliveiro
21 May17:09 i  iii i+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1George Neuner
21 May20:30 i  iii i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Stefan Monnier
22 May03:45 i  iii i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May18:06 i  iii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lynn Wheeler
21 May22:32 i  iii  `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1jseigh
21 May08:05 i  ii+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Anton Ertl
22 May03:48 i  iii`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May13:23 i  ii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?7Stefan Monnier
21 May15:08 i  ii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?6MitchAlsup1
22 May03:49 i  ii  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?5Lawrence D'Oliveiro
22 May18:34 i  ii   +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3MitchAlsup1
22 May23:42 i  ii   i+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
23 May02:54 i  ii   i`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1MitchAlsup1
23 May04:47 i  ii   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1George Neuner
21 May01:32 i  i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lawrence D'Oliveiro
21 May02:29 i  i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Chris M. Thomasson
21 May02:04 i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Chris M. Thomasson
23 May00:49 i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Chris M. Thomasson
23 May02:04 i    `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Chris M. Thomasson
21 May02:31 `- 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