Skip to content

Commit

Permalink
design: add proposal for a soft memory limit
Browse files Browse the repository at this point in the history
For golang/go#48409.

Change-Id: I4e5d6d117982f51108dca83a8e59b118c2b6f4bf
Reviewed-on: https://go-review.googlesource.com/c/proposal/+/350116
Reviewed-by: Michael Pratt <[email protected]>
  • Loading branch information
mknyszek committed Sep 21, 2021
1 parent d4addab commit 150687b
Show file tree
Hide file tree
Showing 18 changed files with 1,139 additions and 0 deletions.
556 changes: 556 additions & 0 deletions design/48409-soft-memory-limit.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions design/48409/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Design document

The GC pacer design document is generated from the `.src.md` file in this
directory.
It contains LaTeX formulas which Markdown cannot render, so they're
rendered by an external open-source tool,
[md-latex](https://github.com/mknyszek/md-tools).

Then, because Gitiles' markdown viewer can't render SVGs, run

```
./svg2png.bash
cd pacer-plots
./svg2png.bash
cd ..
```

And go back and replace all instances of SVG with PNG in the final document.

Note that `svg2png.bash` requires both ImageMagick and Google Chrome.

Binary file added design/48409/eqn1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/eqn2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/48409/inl9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
554 changes: 554 additions & 0 deletions design/48409/soft-memory-limit.src.md

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions design/48409/svg2png.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

for input in *.svg; do
output=${input%.*}.png
google-chrome --headless --window-size=1920,1080 --disable-gpu --screenshot $input
convert screenshot.png -trim $output
done
rm screenshot.png

0 comments on commit 150687b

Please sign in to comment.