Skip to contentSkip to conversation

ramspeed/smp: new package

PATCH New Kelvin Cheung 2 participants 5 messages Jun 28, 2013 – Jul 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ramspeed/smp: new package

Add new package: ramspeed/smp

RAMspeed/SMP, a cache and memory benchmarking tool
(for multiprocessor machines running UNIX-like operating systems)

---
 package/Config.in        |    1 +
 package/ramsmp/Config.in |    7 +++++++
 package/ramsmp/Makefile  |   14 ++++++++++++++
 package/ramsmp/ramsmp.mk |   20 ++++++++++++++++++++
 4 files changed, 42 insertions(+)
 create mode 100644 package/ramsmp/Config.in
 create mode 100644 package/ramsmp/Makefile
 create mode 100644 package/ramsmp/ramsmp.mk
package/Config.in +1 -0
index 8a29c99..20dd41e 100644
@@ -40,6 +40,7 @@ source "package/netperf/Config.in"
 source "package/oprofile/Config.in"
 source "package/perf/Config.in"
 source "package/ramspeed/Config.in"
+source "package/ramsmp/Config.in"
 source "package/rt-tests/Config.in"
 source "package/strace/Config.in"
 source "package/stress/Config.in"
package/ramsmp/Config.in new file +7 -0
new file mode 100644
index 0000000..c379bb1
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RAMSMP
+	bool "ramspeed/smp"
+	help
+	  RAMspeed/SMP is a free open source command line utility
+	  to measure cache and memory performance of multiprocessor machines.
+
+	  http://alasir.com/software/ramspeed/
package/ramsmp/Makefile new file +14 -0
new file mode 100644
index 0000000..5cd76e0
@@ -0,0 +1,14 @@
+
+all: generic
+
+generic: ramsmp.c fltmem.c fltmark.c intmem.c intmark.c
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o ramsmp
+
+i386: ramsmp.c i386/*.s i386/cpuinfo/*.s
+	$(CC) $(CFLAGS) -DI386_ASM $(LDFLAGS) $^ -o ramsmp
+
+x86_64: ramsmp.c amd64/*.s
+	$(CC) $(CFLAGS) -DAMD64_ASM $(LDFLAGS) $^ -o ramsmp
+
+clean:
+	rm -f *.o ramsmp
package/ramsmp/ramsmp.mk new file +20 -0
new file mode 100644
index 0000000..1b44402
@@ -0,0 +1,20 @@
+#############################################################
+#
+# ramsmp
+#
+#############################################################
+
+RAMSMP_VERSION = 3.5.0
+RAMSMP_SITE = http://www.alasir.com/software/ramspeed
+RAMSMP_ARCH = $(if $(BR2_i386),i386)$(if $(BR2_x86_64),x86_64)
+
+define RAMSMP_BUILD_CMDS
+	cp -f package/ramsmp/Makefile $(@D)
+	$(TARGET_CONFIGURE_OPTS) make -C $(@D) $(RAMSMP_ARCH)
+endef
+
+define RAMSMP_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/ramsmp $(TARGET_DIR)/usr/bin/ramsmp
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 ramspeed/smp: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kelvin" == Kelvin Cheung <[email protected]> writes:

Kelvin> Add new package: ramspeed/smp
Kelvin> RAMspeed/SMP, a cache and memory benchmarking tool Kelvin> (for multiprocessor machines running UNIX-like operating systems)

Kelvin> Signed-off-by: Kelvin Cheung <[email protected]>

This looks very similar to our existing ramspeed package. Is it the same/different? Do we need both?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 ramspeed/smp: new package

Hi Peter,

Yes, they are different.
RAMspeed is for uniprocessor machines.
RAMspeed/SMP is for multiprocessor machines.

2013/6/28 Peter Korsgaard <[email protected]>

Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kelvin" == Kelvin Cheung <[email protected]> writes:

Kelvin> Add new package: ramspeed/smp
Kelvin> RAMspeed/SMP, a cache and memory benchmarking tool Kelvin> (for multiprocessor machines running UNIX-like operating systems)

Kelvin> Signed-off-by: Kelvin Cheung <[email protected]>

This looks very similar to our existing ramspeed package. Is it the same/different? Do we need both?

--
Bye, Peter Korsgaard

Signature · 5 lines
Best Regards!
Kelvin Cheung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130701/7da50eba/attachment.html>
#3 lore raw

PATCH 1/1 ramspeed/smp: new package

ping ?

2013/7/1 Kelvin Cheung <[email protected]>

Quoted 32 lines

Hi Peter,

Yes, they are different.
RAMspeed is for uniprocessor machines.
RAMspeed/SMP is for multiprocessor machines.

2013/6/28 Peter Korsgaard <[email protected]>

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kelvin" == Kelvin Cheung <[email protected]> writes:

Kelvin> Add new package: ramspeed/smp
Kelvin> RAMspeed/SMP, a cache and memory benchmarking tool Kelvin> (for multiprocessor machines running UNIX-like operating systems)

Quoted 8 lines

Kelvin> Signed-off-by: Kelvin Cheung <[email protected]>

This looks very similar to our existing ramspeed package. Is it the same/different? Do we need both?

--
Bye, Peter Korsgaard

--
Best Regards!
Kelvin Cheung

Signature · 5 lines
Best Regards!
Kelvin Cheung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130704/d29972c5/attachment.html>
#4 lore raw

PATCH 1/1 ramspeed/smp: new package

In reply to Kelvin Cheung
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kelvin" == Kelvin Cheung <[email protected]> writes:

Kelvin> Add new package: ramspeed/smp
Kelvin> RAMspeed/SMP, a cache and memory benchmarking tool Kelvin> (for multiprocessor machines running UNIX-like operating systems)

Kelvin> Signed-off-by: Kelvin Cheung <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard