!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

706 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.155 Servers

Load older messages


SenderMessageTime
1 Oct 2024
@-_o:matrix.org-_o joined the room.20:55:51
2 Oct 2024
@bjth:matrix.orgBryan Honof

Is there a reason the retry code in src/libstore/filetransfer.cc requires random?
https://github.com/NixOS/nix/blob/96ba7f9d77d6f2fd8fd64aafc50dd8c850e8a902/src/libstore/filetransfer.cc#L505

This part specifically:

int ms = request.baseRetryTimeMs * std::pow(2.0f, attempt - 1 + std::uniform_real_distribution<>(0.0, 0.5)(fileTransfer.mt19937));
00:48:05
@k900:0upti.meK900Random backoffs are generally a good idea05:36:57
@joerg:thalheim.ioMic92
In reply to @bjth:matrix.org

Is there a reason the retry code in src/libstore/filetransfer.cc requires random?
https://github.com/NixOS/nix/blob/96ba7f9d77d6f2fd8fd64aafc50dd8c850e8a902/src/libstore/filetransfer.cc#L505

This part specifically:

int ms = request.baseRetryTimeMs * std::pow(2.0f, attempt - 1 + std::uniform_real_distribution<>(0.0, 0.5)(fileTransfer.mt19937));
Having clients DDOS the server after a downtime.
07:14:48
@joerg:thalheim.ioMic92
In reply to @bjth:matrix.org

Is there a reason the retry code in src/libstore/filetransfer.cc requires random?
https://github.com/NixOS/nix/blob/96ba7f9d77d6f2fd8fd64aafc50dd8c850e8a902/src/libstore/filetransfer.cc#L505

This part specifically:

int ms = request.baseRetryTimeMs * std::pow(2.0f, attempt - 1 + std::uniform_real_distribution<>(0.0, 0.5)(fileTransfer.mt19937));
* Having clients DDOS the server after a downtime can be slightly mitigated by that.
07:15:04
@bjth:matrix.orgBryan HonofOkay, didn't know that. Thanks for the explanation. 😊11:27:31
3 Oct 2024
@midirhee12:tchncs.demidirhee12 joined the room.02:05:20
@renato-trevisan:matrix.orgRenato Trevisan joined the room.09:17:44
@zm94zgv2:private.coffeeZm94ZGV2 changed their profile picture.09:57:09
4 Oct 2024
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam) Is nix eval .#foo supposed to benefit from eval cache? I have a case here where it doesn't. 07:48:32
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam) * Is nix eval .#nixosConfigurations.john.config.system.build.toplevel supposed to benefit from eval cache? I have a case here where it doesn't. 07:49:47
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam)
$ , sqlite3 ~/.cache/nix/eval-cache-v5/fe647c02b237098e3a474c6fbc5b8ad9e30c79afa4ae52c3d2457c9100df4887.sqlite .dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE Attributes (
    parent      integer not null,
    name        text,
    type        integer not null,
    value       text,
    context     text,
    primary key (parent, name)
);
INSERT INTO Attributes VALUES(0,'',0,NULL,NULL);
INSERT INTO Attributes VALUES(1,'packages',0,NULL,NULL);
INSERT INTO Attributes VALUES(3,'nixosConfigurations',3,NULL,NULL);
INSERT INTO Attributes VALUES(2,'x86_64-linux',1,NULL,NULL);
INSERT INTO Attributes VALUES(5,'nixf-tidy-nice',0,NULL,NULL);
INSERT INTO Attributes VALUES(1,'legacyPackages',0,NULL,NULL);
INSERT INTO Attributes VALUES(8,'nixosConfigurations',3,NULL,NULL);
INSERT INTO Attributes VALUES(7,'x86_64-linux',1,NULL,NULL);
INSERT INTO Attributes VALUES(1,'nixosConfigurations',0,NULL,NULL);
INSERT INTO Attributes VALUES(11,'john',0,NULL,NULL);
INSERT INTO Attributes VALUES(12,'config',0,NULL,NULL);
INSERT INTO Attributes VALUES(13,'system',0,NULL,NULL);
INSERT INTO Attributes VALUES(14,'build',0,NULL,NULL);
INSERT INTO Attributes VALUES(15,'toplevel',0,NULL,NULL);
COMMIT;
07:50:03
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam)The cache seems to get populated with nulls... 07:50:54
5 Oct 2024
@ashley_:matrix.orgAshley joined the room.07:58:33
@ashley_:matrix.orgAshleyHello, I've been looking into https://github.com/NixOS/nix/issues/11636 recently which I think could enable some cool possibilities. I'd really appreciate any ideas on whether it makes sense or not though!08:00:03
@zgcarvalho:matrix.orgzgcarvalho joined the room.14:36:19
@9hp71n:matrix.orgghpzin joined the room.15:44:40
@magic_rb:matrix.redalder.orgmagic_rb changed their profile picture.22:16:52
6 Oct 2024
@cafkafk:fem.ggcafkafk 🏳️‍⚧️ joined the room.08:48:00
@bytebandit:tac.lolDerivationDingus changed their display name from bytebandit to DerivationDingus.19:44:13
@rasmus:fricloud.dkRasmus joined the room.22:08:12
7 Oct 2024
@memegames99:matrix.org@memegames99:matrix.org removed their profile picture.00:05:39
@memegames99:matrix.org@memegames99:matrix.org removed their display name memegames99.00:05:50
@memegames99:matrix.org@memegames99:matrix.org left the room.00:06:07
@lehmanator:tchncs.deSam Lehman changed their profile picture.14:24:48
8 Oct 2024
@monkcanatella:matrix.orgMonkCanatella joined the room.00:24:05
@shiina:kitty.social@shiina:kitty.social joined the room.13:02:01
@shiina:kitty.social@shiina:kitty.social left the room.13:04:41
9 Oct 2024
@dvtkrlbs:matrix.orgFoxikira changed their display name from David to Foxikira.06:17:02
@padraic_:matrix.orgpadraic_ joined the room.08:49:39

Show newer messages


Back to Room ListRoom Version: 6