From: Marius Bakke <mbakke@fastmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 26256@debbugs.gnu.org
Subject: bug#26256: [PATCH 4/6] gnu: fio: Enable rbd support.
Date: Tue, 28 Mar 2017 00:10:57 +0200 [thread overview]
Message-ID: <87vaquv09a.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87vaqvj5w6.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 605 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Marius Bakke <mbakke@fastmail.com> skribis:
>
>> * gnu/packages/benchmark.scm (fio)[inputs]: Add ceph:lib.
>
> Would be worth checking how this affects the closure size. It’s a
> developer tool though, so I’d argue that it’s less of a problem if the
> closure size is increased noticeably in this cases.
ceph:lib increases fios closure size from 452.3 MiB to a good 738 MiB.
However, by moving the fio auxiliary scripts to a separate output, I
managed to get the baseline size down from 452.3 MiB to 75.3 MiB. See
attached patch. WDYT?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-fio-Install-python-scripts-in-separate-output.patch --]
[-- Type: text/x-patch, Size: 2180 bytes --]
From b942036bef17a4eacfd7406a9a5130fd2255252d Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@fastmail.com>
Date: Tue, 28 Mar 2017 00:08:36 +0200
Subject: [PATCH] gnu: fio: Install python scripts in separate output.
* gnu/packages/benchmark.scm (fio)[outputs]: New field.
[arguments]: Rename 'wrap-python-scripts' to 'move-outputs'. Keep wrapper.
---
gnu/packages/benchmark.scm | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm
index ff5715d57..994bf1db2 100644
--- a/gnu/packages/benchmark.scm
+++ b/gnu/packages/benchmark.scm
@@ -64,13 +64,22 @@
(let ((out (assoc-ref outputs "out")))
(zero? (system* "./configure"
(string-append "--prefix=" out))))))
- (add-after
- 'install 'wrap-python-scripts
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (wrap-program (string-append out "/bin/fiologparser_hist.py")
- `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
- #t))))))
+ (add-after 'install 'move-outputs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (utils (string-append (assoc-ref outputs "utils") "/bin")))
+ (mkdir-p utils)
+ (for-each (lambda (file)
+ (let ((src (string-append out "/bin/" file))
+ (dst (string-append utils "/" file)))
+ (link src dst)
+ (delete-file src)))
+ '("fio2gnuplot" "fio_latency2csv.py"
+ "fiologparser_hist.py" "fiologparser.py"))
+ (wrap-program (string-append utils "/fiologparser_hist.py")
+ `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
+ #t))))))
+ (outputs '("out" "utils"))
(inputs
`(("libaio" ,libaio)
("gnuplot" ,gnuplot)
--
2.12.2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-03-27 22:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170325202717.14345-1-mbakke@fastmail.com>
[not found] ` <20170325203017.14931-1-mbakke@fastmail.com>
2017-03-27 11:38 ` bug#26256: [PATCH 1/6] Revert "gnu: snappy: Update to 1.1.4." Ludovic Courtès
[not found] ` <20170325203017.14931-2-mbakke@fastmail.com>
2017-03-27 11:39 ` bug#26256: [PATCH 2/6] gnu: xmlstarlet: Disable failing tests Ludovic Courtès
[not found] ` <20170325203017.14931-3-mbakke@fastmail.com>
[not found] ` <87wpbdw04q.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>
2017-03-27 11:48 ` bug#26256: [PATCH 3/6] gnu: Add ceph Ludovic Courtès
2017-03-27 20:13 ` Marius Bakke
2017-03-28 8:57 ` Marius Bakke
2017-03-28 9:43 ` Ludovic Courtès
[not found] ` <20170325203017.14931-4-mbakke@fastmail.com>
2017-03-27 11:50 ` bug#26256: [PATCH 4/6] gnu: fio: Enable rbd support Ludovic Courtès
2017-03-27 22:10 ` Marius Bakke [this message]
2017-03-28 9:45 ` Ludovic Courtès
[not found] ` <20170325203017.14931-5-mbakke@fastmail.com>
2017-03-27 11:51 ` bug#26256: [PATCH 5/6] gnu: Add userspace-rcu Ludovic Courtès
2017-03-27 19:13 ` Marius Bakke
2017-03-27 22:57 ` Marius Bakke
2017-03-27 23:41 ` Marius Bakke
2017-03-28 8:17 ` Ludovic Courtès
2017-03-28 8:14 ` Ludovic Courtès
2017-03-27 19:49 ` Tobias Geerinckx-Rice
2017-03-27 19:54 ` Tobias Geerinckx-Rice
2017-03-27 20:08 ` Marius Bakke
2017-03-27 22:21 ` Tobias Geerinckx-Rice
2017-03-27 22:31 ` Marius Bakke
2017-03-27 22:59 ` Tobias Geerinckx-Rice
2017-03-27 23:05 ` Marius Bakke
2017-03-28 11:16 ` Ludovic Courtès
[not found] ` <20170325203017.14931-6-mbakke@fastmail.com>
2017-03-27 11:52 ` bug#26256: [PATCH 6/6] gnu: Add multipath-tools Ludovic Courtès
2017-03-28 15:10 ` bug#26256: [PATCH 0/6] Add ceph + multipath-tools Marius Bakke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vaquv09a.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=26256@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.