Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(82)

Issue 257041: code review 257041: runtime: clock garbage collection on bytes allocated, n... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by rsc
Modified:
15 years ago
Reviewers:
CC:
r, cw, golang-dev
Visibility:
Public.

Description

runtime: clock garbage collection on bytes allocated, not pages in use This keeps fragmentation from delaying garbage collections (and causing more fragmentation). Cuts fresh godoc (with indexes) from 261M to 166M (120M live). Cuts toy wc program from 50M to 8M. Fixes issue 647.

Patch Set 1 #

Patch Set 2 : code review 257041: runtime: clock garbage collection on bytes allocated, n... #

Patch Set 3 : code review 257041: runtime: clock garbage collection on bytes allocated, n... #

Patch Set 4 : code review 257041: runtime: clock garbage collection on bytes allocated, n... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -17 lines) Patch
M src/pkg/runtime/extern.go View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/malloc.h View 1 3 chunks +7 lines, -5 lines 0 comments Download
M src/pkg/runtime/malloc.cgo View 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/mcache.c View 1 3 chunks +19 lines, -0 lines 0 comments Download
M src/pkg/runtime/mcentral.c View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 3 chunks +13 lines, -4 lines 0 comments Download
M src/pkg/runtime/mheap.c View 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-03-06 01:41:08 UTC) #1
r2
LGTM On Mar 5, 2010, at 5:41 PM, rsc@golang.org wrote: > Reviewers: r, > > ...
15 years ago (2010-03-06 04:02:30 UTC) #2
cw
Neat. I see similar gains here on code that has objects with mixed lifetimes. On ...
15 years ago (2010-03-06 04:32:40 UTC) #3
rsc
15 years ago (2010-03-08 22:15:47 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=348e71baa44e ***

runtime: clock garbage collection on bytes allocated, not pages in use
This keeps fragmentation from delaying
garbage collections (and causing more fragmentation).

Cuts fresh godoc (with indexes) from 261M to 166M (120M live).
Cuts toy wc program from 50M to 8M.

Fixes issue 647.

R=r, cw
CC=golang-dev
http://codereview.appspot.com/257041
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b