Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit b62d881

Browse files
committed
jit, 128MB of disk, 9MB of state, yay!
1 parent cc1b266 commit b62d881

File tree

7 files changed

+6
-870
lines changed

7 files changed

+6
-870
lines changed

build/no-jit/libv86.js

Lines changed: 0 additions & 821 deletions
This file was deleted.

build/no-jit/v86.wasm

-904 KB
Binary file not shown.

filesystem/04d68c16.bin

Lines changed: 0 additions & 44 deletions
This file was deleted.

filesystem/6206798a.bin renamed to filesystem/c0a739ee.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ max_connections = 100 # (change requires restart)
124124

125125
# - Memory -
126126

127-
shared_buffers = 128MB # min 128kB
127+
shared_buffers = 64MB # min 128kB
128128
# (change requires restart)
129129
#huge_pages = try # on, off, or try
130130
# (change requires restart)

filesystem/filesystem.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<title>Postgres in browser</title>
55
<link rel="stylesheet" href="https://unpkg.com/xterm@4.19.0/css/xterm.css" />
66
<script src="https://unpkg.com/xterm@4.19.0/lib/xterm.js"></script>
7-
<script src="./build/no-jit/libv86.js"></script>
7+
<script src="./build/libv86.js"></script>
88
<script>
99
window.onload = () => {
1010
const baseOptions = {
11-
wasm_path: "./build/no-jit/v86.wasm",
12-
memory_size: 512 * 1024 * 1024,
11+
wasm_path: "./build/v86.wasm",
12+
memory_size: 128 * 1024 * 1024,
1313
filesystem: {
1414
basefs: "filesystem/filesystem.json",
1515
baseurl: "filesystem/",
@@ -57,6 +57,7 @@
5757
emulator.add_listener("emulator-ready", function () {
5858
setTimeout(() => {
5959
emulator.serial0_send('/etc/init.d/S40network restart\n');
60+
emulator.serial0_send("su - postgres -c '/usr/bin/pg_ctl start -w -D /var/lib/pgsql -l logfile'\n");
6061
emulator.serial0_send('psql -U postgres\n');
6162
emulator.serial0_send('\\! echo "boot_completed"; reset\n');
6263
}, 0);

state/state.bin.zst

-2.61 MB
Binary file not shown.

0 commit comments

Comments
 (0)