Commit graph

35 commits

Author SHA1 Message Date
Graham Christensen c2b898da76 treewide: drop -l$NIX_BUILD_CORES
Passing `-l$NIX_BUILD_CORES` improperly limits the overall system load.

For a build machine which is configured to run `$B` builds where each
build gets `total cores / B` cores (`$C`), passing `-l $C` to make will
improperly limit the load to `$C` instead of `$B * $C`.

This effect becomes quite pronounced on machines with 80 cores, with
40 simultaneous builds and a cores limit of 2. On a machine with this
configuration, Nix will run 40 builds and make will limit the overall
system load to approximately 2. A build machine with this many cores
can happily run with a load approaching 80.

A non-solution is to oversubscribe the machine, by picking a larger
`$C`. However, there is no way to divide the number of cores in a way
which fairly subdivides the available cores when `$B` is greater than
1.

There has been exploration of passing a jobserver in to the sandbox,
or sharing a jobserver between all the builds. This is one option, but
relatively complicated and only supports make. Lots of other software
uses its own implementation of `-j` and doesn't support either `-l` or
the Make jobserver.

For the case of an interactive user machine, the user should limit
overall system load using `$B`, `$C`, and optionally systemd's
cpu/network/io limiting features.

Making this change should significantly improve the utilization of our
build farm, and improve the throughput of Hydra.
2022-09-22 16:01:23 -04:00
Jonas Heinrich cc9076cbea
Merge pull request #184300 from r-ryantm/auto-update/kernelshark
kernelshark: 2.1.0 -> 2.1.1
2022-08-28 13:07:11 +02:00
R. Ryantm f2c21d72e4 trace-cmd: 3.1.1 -> 3.1.2 2022-08-02 05:34:17 +00:00
R. Ryantm f97262253e kernelshark: 2.1.0 -> 2.1.1 2022-07-31 18:33:42 +00:00
Michal Sojka c30f978f23 trace-cmd: 3.0.3->3.1.1 2022-07-05 11:42:18 +02:00
Michal Sojka 3a9bdc3f3e trace-cmd: 2.9.7 -> 3.0.3 2022-06-18 09:02:41 +02:00
R. Ryantm 5a3689c783 trace-cmd: 2.9.6 -> 2.9.7 2022-02-23 03:13:56 +00:00
R. RyanTM b5090e841e
trace-cmd: 2.9.5 -> 2.9.6
* trace-cmd: 2.9.5 -> 2.9.6 (#148944)

And update meta.licenses

The lib part is under LGPL-2.1
And use SPDX 3.0 license identifier

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-11 16:45:16 +01:00
Michal Sojka 73aaf861da kernelshark: 2.0.2 -> 2.1.0 2022-01-19 08:29:25 +01:00
Michal Sojka 393fc1f7ee kernelshark: 1.2 -> 2.0.2
Relevant upstream changes:

- Sources were moved from trace-cmd repository to a new repository.
- Makefile for building documentation is broken. Therefore, we don't
  build documentation. After upstream fixes it, we can build it again.
2021-10-23 22:19:10 +02:00
Michal Sojka 3d249d1d49 trace-cmd: 2.9.1 -> 2.9.5
Besides updating trace-cmd, this commit also switches from bundled
libtraceevent and libtracefs to their external sources. Upstream
copied those libraries to separate repositories (see
https://lore.kernel.org/linux-trace-devel/20210325172357.6e059c31@gandalf.local.home/).

Another change relates to documentation building, which upstream
reworked. We disable HTML documentation - previous versions did not
provide it too.

Finally, we enable parallel build, which is simpler if `buildPhase` is
not overridden.
2021-10-23 22:12:46 +02:00
Michal Sojka 136ae024c0 trace-cmd: 2.9-dev -> 2.9.1, kernelshark: 1.1.0 -> 1.2
Besides updating the version, this commit decouples trace-cmd and
kernelshark source revisions. These two programs are developed in the
same repository but are released independently. Nixpkgs built the
previous versions of these programs from the same source commit, which
meant that at least one of the programs were not built from the
officially released version. Now we use the release tags of the
corresponding programs.
2021-03-22 11:00:26 +01:00
Pavol Rusnak a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Jonas Chevalier a7cb88c3de
tree-wide: unify Bash completions outputs (#103421)
Use $out/share/bash-completion/completions to store the Bash completions
2020-11-12 21:22:18 +00:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Patrick Hilhorst 593e11fd94
treewide: fix redirected urls
According to https://repology.org/repository/nix_unstable/problems, we have a
lot of packages that have http links that redirect to https as their homepage.
This commit updates all these packages to use the https links as their
homepage.

The following script was used to make these updates:

```

curl https://repology.org/api/v1/repository/nix_unstable/problems \
    | jq '.[] | .problem' -r \
    | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \
    | sort | uniq > script.sed

find -name '*.nix' | xargs -P4 -- sed -f script.sed -i
```
2020-01-22 11:26:22 +01:00
c0bw3b 9367367dfd Treewide: fix URL permanent redirects
Permanent redirects on homepages and/or source URLs
as reported by Repology
2019-11-16 01:41:23 +01:00
Bas van Dijk d6cf06b950 tracecmd: 2.8.3 -> 2.9-dev & kernelshark: 0.9.8 -> 1.1.0 2019-10-31 16:07:39 -05:00
volth 08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Bas van Dijk c9c895062f trace-cmd/kernelshark: downgrade to the trace-cmd-stable-v2.8 branch 2019-07-27 20:33:33 +02:00
Bas van Dijk 7803c04c7c kernelshark: 0.9.8-f97e28a -> 1.0.0 2019-07-27 20:02:58 +02:00
Bas van Dijk d9e3118ab0 kernelshark: remove doxygen and graphviz because they aren't used 2019-07-25 22:17:43 +02:00
Bas van Dijk 585de35cd6 kernelshark: install documentation 2019-07-25 22:13:17 +02:00
Bas van Dijk 4542cca0b2 trace-cmd: 2.8-0c957d2 -> 2.9-dev-1517dc3 2019-07-25 21:36:09 +02:00
Bas van Dijk d1466e7006 trace-cmd: 2.8-c8d9e1a -> 2.8-0c957d2 2019-07-25 21:36:09 +02:00
Bas van Dijk fa5a346244 kernelshark: init at 0.9.8-c8d9e1a 2019-07-25 21:36:09 +02:00
Bas van Dijk a9b4881f94 trace-cmd: 2.6 -> 2.8-c8d9e1a 2019-07-25 21:36:09 +02:00
worldofpeace cab7c6cbd9 treewide: use dontConfigure 2019-07-01 04:23:51 -04:00
Bjørn Forsman bd01fad0ed Captialize meta.description of all packages
In line with the Nixpkgs manual.

A mechanical change, done with this command:

  find pkgs -name "*.nix" | \
      while read f; do \
          sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \
      done

I manually skipped some:

* Descriptions starting with an abbreviation, a user name or package name
* Frequently generated expressions (haskell-packages.nix)
2016-06-20 13:55:52 +02:00
Tuomas Tynkkynen bac26e08db Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
Austin Seipp 6e9b561a88 nixpkgs: trace-cmd 2.5.3 -> 2.6
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-08-31 03:17:18 -05:00
Tuomas Tynkkynen 663c972385 trace-cmd: Fix build by adding docbook_xsl dependency
Gets rid of this build error:

make -C /tmp/nix-build-trace-cmd-2.5.3.drv-0/trace-cmd/Documentation all
      ASCIIDOC            trace-cmd-hist.1.xsl
*********************************
** No docbook.xsl is installed **
** Can't make man pages        **
*********************************
Makefile:59: recipe for target '/tmp/nix-build-trace-cmd-2.5.3.drv-0/trace-cmd/Documentation/trace-cmd-hist.1' failed
2015-04-23 06:32:54 +03:00
Austin Seipp 003f5a87b3 nixpkgs: add trace-cmd 2.5.3
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-04-18 14:45:47 -05:00