Re: RPC performance

2017-06-19 Thread Ludovic Courtès
ludovic.cour...@inria.fr (Ludovic Courtès) skribis: > There are several ways we can improve it, and over time we should try to > implement all of them: > > 1. Buffer writes to the server socket (currently it’s terrible if you > look at the ‘write’ calls in ‘strace’). Done in commit e037e9d

Re: Differences between container used by "guix build" and "guix environment -C -N"

2017-06-19 Thread Danny Milosavljevic
Hi Ludo, it does pretty much the equvalent of this Python program, in Rust: #!/usr/bin/env python3 import os import subprocess import signal signal.pthread_sigmask(signal.SIG_BLOCK, [signal.SIGINT]) p = subprocess.Popen(["cat"], stdin=subprocess.PIPE, stdout=subprocess

Re: Upgrading packages with substitutes only (bug #26608)

2017-06-19 Thread Leo Famulari
On Sun, Jun 18, 2017 at 10:44:34AM -0700, Timothy Sample wrote: > Leo Famulari writes: > > On Sun, Jun 18, 2017 at 11:38:45AM +0200, Ricardo Wurmus wrote: > >> In my opinion “--only-substitutes” should stop and report a list. > >> If it continued without complaining there could be problems: > >>

Re: Upgrading packages with substitutes only (bug #26608)

2017-06-19 Thread Timothy Sample
l...@gnu.org (Ludovic Courtès) writes: > In the future I was also thinking that the build farm could tag Git > commits that it has fully built, and thus ‘guix pull’ could be told to > pull to the latest fully-built commit. I like this quite a bit. In fact, this is more in the spirit of what I wan

Re: ‘core-updates’ building!

2017-06-19 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> l...@gnu.org (Ludovic Courtès) writes: >> >>> I went ahead and started an evaluation of the full package set for >>> ‘core-updates’: >>> >>> https://hydra.gnu.org/jobset/gnu/core-updates >>> >>> I think we should focus on fixi

Re: (guix git) and guile-git finalizers.

2017-06-19 Thread Mathieu Othacehe
Hi ! I may have found something that replaces finalizers. I followed Andy and Amirouche advices and used guardians, as in guile-sqlite3. The idea here is to create a guardian per pointer-type to finalize. A pumper function that operates on this guardian is also created. This pumper function know

Re: RPC performance

2017-06-19 Thread Ricardo Wurmus
Ludovic Courtès writes: > ludovic.cour...@inria.fr (Ludovic Courtès) skribis: > >> There are several ways we can improve it, and over time we should try to >> implement all of them: >> >> 1. Buffer writes to the server socket (currently it’s terrible if you >> look at the ‘write’ calls in

Re: fails make on core-updates

2017-06-19 Thread Manolis Ragkousis
On Jun 19, 2017 15:32, "rennes" wrote: Hello, > Could it be that you had sale .o files? What version of GCC are you > using? > I completely delete the repository and re-clone. It works now. Thanks Next time you could avoid such extreme measures. Running git clean -dfx would clean all extra

Re: fails make on core-updates

2017-06-19 Thread rennes
Hello, Could it be that you had sale .o files? What version of GCC are you using? I completely delete the repository and re-clone. It works now. Thanks

Re: ‘core-updates’ building!

2017-06-19 Thread Ludovic Courtès
Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> I went ahead and started an evaluation of the full package set for >> ‘core-updates’: >> >> https://hydra.gnu.org/jobset/gnu/core-updates >> >> I think we should focus on fixing remaining build issues now. > > Almost(?) all of

Re: Upgrading packages with substitutes only (bug #26608)

2017-06-19 Thread Ludovic Courtès
Ricardo Wurmus skribis: > Ludovic Courtès writes: > >> BTW, should --only-substitutes filter out packages without a substitute, >> or should it simply stop and report the list of missing substitutes >> (after which the user could use --do-not-upgrade)? > > In my opinion “--only-substitutes” shou

Re: [PATCH] Prototype register-path

2017-06-19 Thread Ludovic Courtès
Hello! Caleb Ristvedt skribis: > Well, I took a look at libstore/build.cc, and that is a lot of code. I > hope I can get away with only reading as much as is necessary to clarify > details. To that end, I'd like to make sure that my high-level > understanding of the build process is accurate. >

Re: [PATCH] Prototype register-path

2017-06-19 Thread Ludovic Courtès
Heya, Thanks for the perfect explanation, Chris. To complement what you wrote: > More specifically, there are various interpretations of the word > "derivation", depending on the context. For example, there are structs > in the Nix C++ source code that represent derivations [3]. In the Nix > e

Re: guixsd in lxd container

2017-06-19 Thread Ludovic Courtès
Hi Eddy, Sorry for the delay. Eddy Pronk skribis: > On Mon, Jun 12, 2017 at 6:26 AM, Ludovic Courtès wrote: >>> I had to comment out some snippets from activation.scm: >>> >>> ;; activate-modprobe >>> ;; activate-firmware >>> ;; activate-ptrace-attach >> >> Yeah, ‘guix system container’ does t

Re: fails make on core-updates

2017-06-19 Thread Ludovic Courtès
Hello rennes, rennes skribis: > error appears: > >CXX nix/libstore/libstore_a-sqlite.o >AR libstore.a > ar: `u' modifier ignored since `D' is the default (see `U') >CXX nix/nix-daemon/guix_daemon-nix-daemon.o >CXX nix/nix-daemon/guix_daemon-guix-daemon.o

Re: Differences between container used by "guix build" and "guix environment -C -N"

2017-06-19 Thread Ludovic Courtès
Hello, Danny Milosavljevic skribis: > I'm trying to track down the test_process_mask problem in Guix when trying to > test rustc. > > For that I did: > > (apply attached patch) > $ guix build --keep-failed rustc # will fail > $ cd /tmp/guix-build-rustc-1.16.0.drv-0 > $ guix environment -C -N ru

Re: RPC performance

2017-06-19 Thread Ludovic Courtès
ludovic.cour...@inria.fr (Ludovic Courtès) skribis: > There are several ways we can improve it, and over time we should try to > implement all of them: > > 1. Buffer writes to the server socket (currently it’s terrible if you > look at the ‘write’ calls in ‘strace’). Could you test the eff

RPC performance

2017-06-19 Thread Ludovic Courtès
Hello, Ricardo Wurmus skribis: > Performance differs a lot for different packages. “guix build bwa” (~ 7 > seconds) is a lot faster than “guix build python2-numpy” (> 40 seconds), > for example. My guess is that this is mostly due to RPC performance: --8<---cut here---

Re: [PATCH] git-download: Speed up 'git-predicate'.

2017-06-19 Thread Christopher Baines
On 07/06/17 13:52, Ludovic Courtès wrote: > Christopher Baines skribis: > >> Adjust 'git-predicate' to use data structures that perform better when used >> with git repositories with a large number of files. >> >> Previously when matching either a regular file or directory, 'git-predicate' >> wou

[PATCH] git-download: Speed up 'git-predicate'.

2017-06-19 Thread Christopher Baines
Adjust 'git-predicate' to use data structures that perform better when used with git repositories with a large number of files. Previously when matching either a regular file or directory, 'git-predicate' would search a list with a length equal to the number of files in the repository. As a search