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

Issue 5531073: code review 5531073: runtime: madvise and SysUnused for Darwin (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by dave
Modified:
13 years, 6 months ago
Reviewers:
CC:
Sebastien Paolacci, rsc, minux1, golang-dev
Visibility:
Public.

Description

runtime: madvise and SysUnused for Darwin SysUnused is a direct call to madvise MADV_FREE.

Patch Set 1 #

Patch Set 2 : diff -r d5d8367a4775 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r d5d8367a4775 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 518f09c59498 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 518f09c59498 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 6 : diff -r 4f026dec52ea https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -3 lines) Patch
M src/pkg/runtime/defs_darwin.go View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/defs_darwin_386.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/defs_darwin_amd64.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/mem_darwin.c View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M src/pkg/runtime/sys_darwin_386.s View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/sys_darwin_amd64.s View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 17
dave_cheney.net
Hello sebastien.paolacci@gmail.com, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 6 months ago (2012-01-11 09:42:50 UTC) #1
dave_cheney.net
ping
13 years, 6 months ago (2012-01-14 05:09:39 UTC) #2
Sebastien Paolacci
Hi Dave, Thanks for taking care of that. At glance, it looks good to me. ...
13 years, 6 months ago (2012-01-14 11:15:10 UTC) #3
dave_cheney.net
odessa(~/go/test/bench/shootout) % 6g binary-tree.go && 6l -o binary-tree binary-tree.6odessa(~/go/test/bench/shootout) % GOSCVGPERIOD=1 GOGCTRACE=1 ./binary-tree -n=18 2>&1 ...
13 years, 6 months ago (2012-01-14 11:57:50 UTC) #4
Sebastien Paolacci
Is the process actually using what's reported here (you should see a 50MB -> 40MB ...
13 years, 6 months ago (2012-01-14 12:40:17 UTC) #5
minux1
LGTM.
13 years, 6 months ago (2012-01-14 16:16:50 UTC) #6
Sebastien Paolacci
Would be better, I think, if it was possible to evaluate the exact behavior first. ...
13 years, 6 months ago (2012-01-15 09:19:23 UTC) #7
dave_cheney.net
Sure thing, I'll give it a go. Sent from my iPhone On 15/01/2012, at 20:19, ...
13 years, 6 months ago (2012-01-15 09:28:23 UTC) #8
dave_cheney.net
Hello sebastien.paolacci@gmail.com, rsc@golang.org, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 6 months ago (2012-01-15 09:48:36 UTC) #9
dave_cheney.net
No observed difference sadly. /usr/bin/dtruss cannot properly instrument a Go program so I'm not sure ...
13 years, 6 months ago (2012-01-15 09:50:27 UTC) #10
rsc
http://codereview.appspot.com/5531073/diff/11002/src/pkg/runtime/mem_darwin.c File src/pkg/runtime/mem_darwin.c (right): http://codereview.appspot.com/5531073/diff/11002/src/pkg/runtime/mem_darwin.c#newcode26 src/pkg/runtime/mem_darwin.c:26: // MADV_DONTNEED does not appear to be It sure ...
13 years, 6 months ago (2012-01-17 00:03:30 UTC) #11
rsc
LGTM But we need to fix the comments. MADV_FREE is what we want, always, as ...
13 years, 6 months ago (2012-01-17 00:04:09 UTC) #12
dave_cheney.net
Thanks Russ. I will fix and resubmit tonight. Sent from my iPhone On 17/01/2012, at ...
13 years, 6 months ago (2012-01-17 00:10:07 UTC) #13
rsc
If you want to include a comment, I think it would be // Linux's MADV_DONTNEED ...
13 years, 6 months ago (2012-01-17 01:46:11 UTC) #14
dave_cheney.net
Hello sebastien.paolacci@gmail.com, rsc@golang.org, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 6 months ago (2012-01-17 08:19:58 UTC) #15
rsc
LGTM
13 years, 6 months ago (2012-01-19 20:50:52 UTC) #16
rsc
13 years, 6 months ago (2012-01-19 20:51:32 UTC) #17
*** Submitted as http://code.google.com/p/go/source/detail?r=8e67ea0e19f9 ***

runtime: madvise and SysUnused for Darwin

SysUnused is a direct call to madvise MADV_FREE.

R=sebastien.paolacci, rsc, minux.ma
CC=golang-dev
http://codereview.appspot.com/5531073

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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