Re: Tonight's tradeoff

Liste des GroupesRevenir à c arch 
Sujet : Re: Tonight's tradeoff
De : gneuner2 (at) *nospam* comcast.net (George Neuner)
Groupes : comp.arch
Date : 12. Mar 2024, 13:30:08
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <47d0vi5lh4efcsgmdp7j558tnsga7j6p5d@4ax.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : ForteAgent/8.00.32.1272
On Mon, 11 Mar 2024 09:32:40 -0700, Tim Rentsch
<tr.17687@z991.linuxsc.com> wrote:

George Neuner <gneuner2@comcast.net> writes:
>
On Sun, 10 Mar 2024 14:29:52 -0400, George Neuner
<gneuner2@comcast.net> wrote:
>
>
Problem is - whatever [GC] you choose - it will be wrong and have bad
performance for some important class of GC'd applications.
>
"bad performance" may mean "slow", but also may mean memory use much
higher than should be necessary.
>
Understood.  And there are other relevant metrics as well, as
for example not throughput but worst-case latency.

If latency is the primary concern, then you should use a deterministic
system such as Baker's Treadmill. 

Treadmill essentially is just a set of linked lists, and collectio
operations like marking and sweeping simply move blocks from one list
to another.  But you pay for that determinism with space - compared to
other systems, Treadmills have a lot of per-block metadata.

Note that for allocating and freeing to be deterministic, a Treadmill
has to work with fixed size blocks.  But you can run multiple
Treadmills for common block sizes, with a catchall for big blocks.
Some malloc/free style allocators already work like this, using
separate lists for some commonly requested block sizes.

Depending on how you handle the metadata, Treadmills also are amenable
to coalescing free space and/or compacting the heap / working set. But
note that these types of operations can't be made deterministic.

Date Sujet#  Auteur
7 Mar 24 * Re: Tonight's tradeoff15Robert Finch
7 Mar 24 `* Re: Tonight's tradeoff14mitchalsup@aol.com (MitchAlsup1)
7 Mar 24  `* Re: Tonight's tradeoff13Robert Finch
7 Mar 24   +- Re: Tonight's tradeoff1mitchalsup@aol.com (MitchAlsup1)
8 Mar 24   `* Re: Tonight's tradeoff11George Neuner
9 Mar 24    +- Re: Tonight's tradeoff1mitchalsup@aol.com (MitchAlsup1)
9 Mar 24    `* Re: Tonight's tradeoff9Robert Finch
10 Mar 24     `* Re: Tonight's tradeoff8George Neuner
11 Mar 24      +* Re: Tonight's tradeoff5George Neuner
11 Mar 24      i+* Re: Tonight's tradeoff3Tim Rentsch
12 Mar 24      ii`* Re: Tonight's tradeoff2George Neuner
13 Mar 24      ii `- Re: Tonight's tradeoff1Tim Rentsch
12 Mar 24      i`- Re: Tonight's tradeoff1Robert Finch
11 Mar 24      `* Re: Tonight's tradeoff2Tim Rentsch
29 Apr 24       `- Re: Tonight's tradeoff1Tim Rentsch

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal