all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#32601] [PATCH] gnu: Add perftest.
@ 2018-08-31 15:00 Manuel Graf
  2018-08-31 15:24 ` Manuel Graf
  0 siblings, 1 reply; 6+ messages in thread
From: Manuel Graf @ 2018-08-31 15:00 UTC (permalink / raw)
  To: 32601; +Cc: Manuel Graf

* gnu/packages/linux.scm (perftest): New variable.
---
 gnu/packages/linux.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 63b3ece8e..f46877561 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3622,6 +3622,39 @@ The following service daemons are also provided:
            license:cc0               ; most files in ccan/
            license:bsd-3))))         ; providers/hfi1verbs are dual GPL2/BSD-3
 
+(define-public perftest
+  (package
+    (name "perftest")
+    (version "4.2-0.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/linux-rdma/perftest/releases/download/V"
+                           version
+                           "/perftest-"
+                           version
+                           ".g0e24e67.tar.gz"))
+       (sha256
+        (base32 "1r3pxn7cx3grb8myb4q1b0pk447pc06cifd0v7ym13xw00372dlx"))
+       (patches (search-patches "linux-perftest-fix-netinet-ip.h-includes.patch"))))
+    (build-system gnu-build-system)
+    (inputs `(("rdma-core" ,rdma-core)))
+    (home-page "https://github.com/linux-rdma/perftest/")
+    (synopsis "Open Fabrics Enterprise Distribution (OFED) Performance Tests")
+    (description "This is a collection of tests written over uverbs intended for
+use as a performance micro-benchmark. The tests may be used for HW or SW tuning
+as well as for functional testing.
+
+The collection contains a set of bandwidth and latency benchmark such as:
+@enumerate
+@item Send        - @code{ib_send_bw} and @code{ib_send_lat}
+@item RDMA Read   - @code{ib_read_bw} and @code{ib_read_lat}
+@item RDMA Write  - @code{ib_write_bw} and @code{ib_wriet_lat}
+@item RDMA Atomic - @code{ib_atomic_bw} and @code{ib_atomic_lat}
+@item Native Ethernet (when working with MOFED2) - @code{raw_ethernet_bw}, @code{raw_ethernet_lat}
+@end enumerate")
+    (license license:gpl2)))
+
 (define-public rng-tools
   (package
     (name "rng-tools")
-- 
2.14.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#32601] [PATCH] gnu: Add perftest.
  2018-08-31 15:00 [bug#32601] [PATCH] gnu: Add perftest Manuel Graf
@ 2018-08-31 15:24 ` Manuel Graf
  2018-09-01 17:42   ` bug#32601: " Leo Famulari
  2018-09-11 14:23   ` Danny Milosavljevic
  0 siblings, 2 replies; 6+ messages in thread
From: Manuel Graf @ 2018-08-31 15:24 UTC (permalink / raw)
  To: 32601; +Cc: Manuel Graf

* gnu/packages/linux.scm (perftest): New variable.
---
 gnu/packages/linux.scm                             | 33 ++++++++
 .../linux-perftest-fix-netinet-ip.h-includes.patch | 96 ++++++++++++++++++++++
 2 files changed, 129 insertions(+)
 create mode 100644 gnu/packages/patches/linux-perftest-fix-netinet-ip.h-includes.patch

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 63b3ece8e..f46877561 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3622,6 +3622,39 @@ The following service daemons are also provided:
            license:cc0               ; most files in ccan/
            license:bsd-3))))         ; providers/hfi1verbs are dual GPL2/BSD-3
 
+(define-public perftest
+  (package
+    (name "perftest")
+    (version "4.2-0.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/linux-rdma/perftest/releases/download/V"
+                           version
+                           "/perftest-"
+                           version
+                           ".g0e24e67.tar.gz"))
+       (sha256
+        (base32 "1r3pxn7cx3grb8myb4q1b0pk447pc06cifd0v7ym13xw00372dlx"))
+       (patches (search-patches "linux-perftest-fix-netinet-ip.h-includes.patch"))))
+    (build-system gnu-build-system)
+    (inputs `(("rdma-core" ,rdma-core)))
+    (home-page "https://github.com/linux-rdma/perftest/")
+    (synopsis "Open Fabrics Enterprise Distribution (OFED) Performance Tests")
+    (description "This is a collection of tests written over uverbs intended for
+use as a performance micro-benchmark. The tests may be used for HW or SW tuning
+as well as for functional testing.
+
+The collection contains a set of bandwidth and latency benchmark such as:
+@enumerate
+@item Send        - @code{ib_send_bw} and @code{ib_send_lat}
+@item RDMA Read   - @code{ib_read_bw} and @code{ib_read_lat}
+@item RDMA Write  - @code{ib_write_bw} and @code{ib_wriet_lat}
+@item RDMA Atomic - @code{ib_atomic_bw} and @code{ib_atomic_lat}
+@item Native Ethernet (when working with MOFED2) - @code{raw_ethernet_bw}, @code{raw_ethernet_lat}
+@end enumerate")
+    (license license:gpl2)))
+
 (define-public rng-tools
   (package
     (name "rng-tools")
diff --git a/gnu/packages/patches/linux-perftest-fix-netinet-ip.h-includes.patch b/gnu/packages/patches/linux-perftest-fix-netinet-ip.h-includes.patch
new file mode 100644
index 000000000..d9cb8cff4
--- /dev/null
+++ b/gnu/packages/patches/linux-perftest-fix-netinet-ip.h-includes.patch
@@ -0,0 +1,96 @@
+From cfc1c97189e074935c198c2e939e27832808dbed Mon Sep 17 00:00:00 2001
+From: Manuel Graf <graf@init.at>
+Date: Mon, 27 Aug 2018 14:19:41 +0200
+Subject: [PATCH] fix netinet/ip.h include
+
+do not use absolute path of header file in include directives.
+---
+ src/raw_ethernet_fs_rate.c        | 2 +-
+ src/raw_ethernet_resources.c      | 2 +-
+ src/raw_ethernet_resources.h      | 2 +-
+ src/raw_ethernet_send_burst_lat.c | 2 +-
+ src/raw_ethernet_send_bw.c        | 2 +-
+ src/raw_ethernet_send_lat.c       | 2 +-
+ 6 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/src/raw_ethernet_fs_rate.c b/src/raw_ethernet_fs_rate.c
+index f20c4ed..d9accd7 100755
+--- a/src/raw_ethernet_fs_rate.c
++++ b/src/raw_ethernet_fs_rate.c
+@@ -45,7 +45,7 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <getopt.h>
+-#include </usr/include/netinet/ip.h>
++#include <netinet/ip.h>
+ #include <poll.h>
+ #include "perftest_parameters.h"
+ #include "perftest_resources.h"
+diff --git a/src/raw_ethernet_resources.c b/src/raw_ethernet_resources.c
+index 290855e..555e54d 100755
+--- a/src/raw_ethernet_resources.c
++++ b/src/raw_ethernet_resources.c
+@@ -45,7 +45,7 @@
+ #include <signal.h>
+ #include <getopt.h>
+ #include <unistd.h>
+-#include </usr/include/netinet/ip.h>
++#include <netinet/ip.h>
+ #include <poll.h>
+ #include "perftest_parameters.h"
+ #include "perftest_resources.h"
+diff --git a/src/raw_ethernet_resources.h b/src/raw_ethernet_resources.h
+index 9be98e4..39ae157 100755
+--- a/src/raw_ethernet_resources.h
++++ b/src/raw_ethernet_resources.h
+@@ -13,7 +13,7 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <getopt.h>
+-#include </usr/include/netinet/ip.h>
++#include <netinet/ip.h>
+ #include <poll.h>
+ #include "perftest_parameters.h"
+ #include "perftest_resources.h"
+diff --git a/src/raw_ethernet_send_burst_lat.c b/src/raw_ethernet_send_burst_lat.c
+index ccc077c..f351a68 100755
+--- a/src/raw_ethernet_send_burst_lat.c
++++ b/src/raw_ethernet_send_burst_lat.c
+@@ -45,7 +45,7 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <getopt.h>
+-#include </usr/include/netinet/ip.h>
++#include <netinet/ip.h>
+ #include <poll.h>
+ #include "perftest_parameters.h"
+ #include "perftest_resources.h"
+diff --git a/src/raw_ethernet_send_bw.c b/src/raw_ethernet_send_bw.c
+index e3ec1b0..c7bd8be 100755
+--- a/src/raw_ethernet_send_bw.c
++++ b/src/raw_ethernet_send_bw.c
+@@ -45,7 +45,7 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <getopt.h>
+-#include </usr/include/netinet/ip.h>
++#include <netinet/ip.h>
+ #include <poll.h>
+ #include "perftest_parameters.h"
+ #include "perftest_resources.h"
+diff --git a/src/raw_ethernet_send_lat.c b/src/raw_ethernet_send_lat.c
+index a9e3715..4aec524 100755
+--- a/src/raw_ethernet_send_lat.c
++++ b/src/raw_ethernet_send_lat.c
+@@ -45,7 +45,7 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <getopt.h>
+-#include </usr/include/netinet/ip.h>
++#include <netinet/ip.h>
+ #include <poll.h>
+ #include "perftest_parameters.h"
+ #include "perftest_resources.h"
+-- 
+2.14.4
+
-- 
2.14.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#32601: [PATCH] gnu: Add perftest.
  2018-08-31 15:24 ` Manuel Graf
@ 2018-09-01 17:42   ` Leo Famulari
  2018-09-01 21:52     ` [bug#32601] " Leo Famulari
  2018-09-11 14:23   ` Danny Milosavljevic
  1 sibling, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2018-09-01 17:42 UTC (permalink / raw)
  To: Manuel Graf; +Cc: 32601-done

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

On Fri, Aug 31, 2018 at 05:24:42PM +0200, Manuel Graf wrote:
> * gnu/packages/linux.scm (perftest): New variable.

Thanks!

I replaced the patch file that fixed the header paths with a
"substitution" in the package definition itself and pushed as
d8b98ecf97d4764297d29ff6d78995f8dab4c3c2.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#32601] [PATCH] gnu: Add perftest.
  2018-09-01 17:42   ` bug#32601: " Leo Famulari
@ 2018-09-01 21:52     ` Leo Famulari
  0 siblings, 0 replies; 6+ messages in thread
From: Leo Famulari @ 2018-09-01 21:52 UTC (permalink / raw)
  To: Manuel Graf; +Cc: 32601-done

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

On Sat, Sep 01, 2018 at 01:42:16PM -0400, Leo Famulari wrote:
> On Fri, Aug 31, 2018 at 05:24:42PM +0200, Manuel Graf wrote:
> > * gnu/packages/linux.scm (perftest): New variable.
> 
> Thanks!
> 
> I replaced the patch file that fixed the header paths with a
> "substitution" in the package definition itself and pushed as
> d8b98ecf97d4764297d29ff6d78995f8dab4c3c2.

The push failed initially, so your patch was actually pushed as
a0a273c1eec438c80cf0c716987514e551b3b8f4. Sorry for any confusion!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#32601] [PATCH] gnu: Add perftest.
  2018-08-31 15:24 ` Manuel Graf
  2018-09-01 17:42   ` bug#32601: " Leo Famulari
@ 2018-09-11 14:23   ` Danny Milosavljevic
  2018-09-11 14:45     ` Manuel Graf
  1 sibling, 1 reply; 6+ messages in thread
From: Danny Milosavljevic @ 2018-09-11 14:23 UTC (permalink / raw)
  To: Manuel Graf; +Cc: 32601

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Hi,

could you report this problem upstream?  Sounds like an oversight on their part...

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#32601] [PATCH] gnu: Add perftest.
  2018-09-11 14:23   ` Danny Milosavljevic
@ 2018-09-11 14:45     ` Manuel Graf
  0 siblings, 0 replies; 6+ messages in thread
From: Manuel Graf @ 2018-09-11 14:45 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 32601@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 2035 bytes --]

hi!


did so already.

i created this https://github.com/linux-rdma/perftest/pull/38 pull request.


cheers,


--

[http://freya.init.at/img/init-logo.jpg]
Manuel Graf
Teamlead & Technical Expert for HPC
[
t

]

        +43 1 522 53 77 61
[
m

]

        +43 676 84 66 30 61
[
e

]

        graf@init.at<mailto:{EmailAddress}>
[
w

]

        https://www.init.at
website<https://www.init.at/> | vCard<http://freya.init.at/vcard/graf.vcf> | map<https://www.google.at/maps/place/Fockygasse+29,+1120+Wien/@48.182264,16.3396115> | email<mailto:graf@init.at>

[Senat der Wirtschaft]
[http://freya.init.at/img/facebook.png]<https://www.facebook.com/initatHPC/>    [http://freya.init.at/img/twitter.png] <https://twitter.com/initatHPC>  [http://freya.init.at/img/linkedin.png] <https://at.linkedin.com/company/init-at-informationstechnologie-gmbh>  [http://freya.init.at/img/google.png] <https://plus.google.com/109530876666963951347>
        [Klimaneutrales Unternehmen]

init.at informationstechnologie GmbH | Fockygasse 29-31 | 1120 Wien
Firmenbuchnr.: FN 194213 h | Gerichtsstand: Wien

Diese Nachricht ist vertraulich und nur für den Adressaten bestimmt. Sollten Sie kein autorisierter Empfänger sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung dieser Nachricht nicht gestattet. Bitte informieren Sie in diesem Fall den Absender und löschen Sie alle Kopien - vielen Dank.

This message is confidential and only intended for its recipient. If you are not the intended recipient, any disclosure, distribution or any other use of this mail is prohibited. In this case, please notify the sender and delete all copies of the message - thank you.


________________________________
From: Danny Milosavljevic <dannym@scratchpost.org>
Sent: Tuesday, September 11, 2018 4:23:42 PM
To: Manuel Graf
Cc: 32601@debbugs.gnu.org
Subject: Re: [bug#32601] [PATCH] gnu: Add perftest.

Hi,

could you report this problem upstream?  Sounds like an oversight on their part...

[-- Attachment #2: Type: text/html, Size: 13581 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-11 14:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-31 15:00 [bug#32601] [PATCH] gnu: Add perftest Manuel Graf
2018-08-31 15:24 ` Manuel Graf
2018-09-01 17:42   ` bug#32601: " Leo Famulari
2018-09-01 21:52     ` [bug#32601] " Leo Famulari
2018-09-11 14:23   ` Danny Milosavljevic
2018-09-11 14:45     ` Manuel Graf

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.