!9IQChSjwSHXPPWTa:lix.systems

Lix

1105 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms295 Servers

Load older messages


SenderMessageTime
4 Dec 2025
@raitobezarius:matrix.orgraitobezariusi wonder if the checkpointer blocked on reads makes sense in the transaction isolation model of sqlite19:51:44
@aloisw:julia0815.dealoisw Yeah it seems to be blocked on reads 19:53:05
@aloisw:julia0815.dealoisw Absolutely, the checkpointer needs to read the entire WAL and integrate it into the database. 19:53:21
@aloisw:julia0815.dealoisw
aloisw@exodus ~> ls -lah /mnt/nix/var/nix/db
total 11G
drwxr-xr-x 2 aloisw users  111 Dec  4 20:49 .
drwxr-xr-x 6 aloisw users   79 Dec  4 20:49 ..
-rw------- 1 aloisw users    0 Dec  4 20:49 big-lock
-rw-r--r-- 1 aloisw users 128M Dec  4 20:53 db.sqlite
-rw-r--r-- 1 aloisw users  21M Dec  4 20:53 db.sqlite-shm
-rw-r--r-- 1 aloisw users  11G Dec  4 20:53 db.sqlite-wal
-rw------- 1 aloisw users 8.0M Dec  4 20:49 reserved
-rw-r--r-- 1 aloisw users    2 Dec  4 20:49 schema

Is the problem "the WAL is growing too fast"?

19:53:52
@aloisw:julia0815.dealoisw
aloisw@exodus ~> ls -lah /mnt/nix/var/nix/db
total 11G
drwxr-xr-x 2 aloisw users  111 Dec  4 20:49 .
drwxr-xr-x 6 aloisw users   79 Dec  4 20:49 ..
-rw------- 1 aloisw users    0 Dec  4 20:49 big-lock
-rw-r--r-- 1 aloisw users 128M Dec  4 20:53 db.sqlite
-rw-r--r-- 1 aloisw users  21M Dec  4 20:53 db.sqlite-shm
-rw-r--r-- 1 aloisw users  11G Dec  4 20:53 db.sqlite-wal
-rw------- 1 aloisw users 8.0M Dec  4 20:49 reserved
-rw-r--r-- 1 aloisw users    2 Dec  4 20:49 schema

I wonder if the problem is "the WAL is growing too fast"?

19:54:05
@raitobezarius:matrix.orgraitobezariuswould that mean checkpoint more frequently would fix that?19:55:01
@raitobezarius:matrix.orgraitobezariusis the checkpoint freq automatically derived?19:55:10
@aloisw:julia0815.dealoisw Maybe, it would reduce the latency definitely, but throughput only if the WAL stays in cache then I think. Also it adds more fsync which can slow you down again. 19:56:19
@aloisw:julia0815.dealoisw Yes, when the WAL grows too big, as determined by the wal_autocheckpoint pragma. 19:57:26
@rv32ima:envs.netellie changed their display name from Ellie (The Fake One) to ellie.19:57:32
@aloisw:julia0815.dealoisw Which Lix sets to 40000, so it should be 160 MiB. 19:59:20
@aloisw:julia0815.dealoisw Hm, but the checkpointer shouldn't block others if I read the docs correctly? 20:01:12
@cyclopentane:aidoskyneen.eupentane ⭔ changed their profile picture.20:02:32
@aloisw:julia0815.dealoiswIt seems that the writers just slow down massively, so possibly this is only indirectly related to the checkpointer falling behind by creating a huge WAL.20:09:25
@jassu:kumma.juttu.asiaJassukoWtf is that WAL size?! :o21:06:37
@raitobezarius:matrix.orgraitobezariusyeah but read perf deteriorates with the size of the WAL22:43:19
@raitobezarius:matrix.orgraitobezariushave you tried a lower value?22:43:25
@raitobezarius:matrix.orgraitobezariusbut i guess it's really pesky22:44:19
@raitobezarius:matrix.orgraitobezariuslix by nature in large substitution scenarios is read-write intensive22:44:29
@raitobezarius:matrix.orgraitobezarius* lix by nature in large substitution/builds scenarios is read-write intensive22:44:34
@raitobezarius:matrix.orgraitobezariusbut i feel like the fact that lix is blocked by the potential event that the WAL contains a record relevant to it is a mistake given our usage of flock to mark the future happening of a store path22:45:19
@raitobezarius:matrix.orgraitobezariuswhereas for writes, it seems it'd be good if we could have multiple WAL so that once one is committed, the other can be still filled?22:45:42
@raitobezarius:matrix.orgraitobezariusmaybe we can improve things by initiating checkpoints ourselves at key points…22:46:15
@raitobezarius:matrix.orgraitobezariusit would be interesting to know if we cause checkpoint starvation22:47:19
13 May 2024
@aciceri:nixos.devzrsk joined the room.13:37:30
@dariof4:matrix.orgdariof4 joined the room.14:16:05
@abbe:badti.meabbe joined the room.14:42:22
@mjm:midna.devmjmlix is now in nixos-unstable, what's the best way to use it in a NixOS config?15:47:41
@k900:0upti.meK900nix.package = pkgs.lix15:47:54
@k900:0upti.meK900Probably15:47:58

Show newer messages


Back to Room ListRoom Version: 10