app/compress-perf: add info about socket id used by app and by the driver

Message ID 348A99DA5F5B7549AA880327E580B4358974F68C@IRSMSX101.ger.corp.intel.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series app/compress-perf: add info about socket id used by app and by the driver |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS

Commit Message

Fiona Trahe April 30, 2019, 5:10 p.m. UTC
  Added info about socket id used by compression perf test process and by the driver

Signed-off-by: Tomasz Cel <tomaszx.cel@intel.com>
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
---
Target 19.08 release

 app/test-compress-perf/main.c | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Artur Trybula May 28, 2019, 9:03 a.m. UTC | #1
Added info about socket id used by compression perf test process and by the driver

Signed-off-by: Tomasz Cel <tomaszx.cel@intel.com>
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Artur Trybula < arturx.trybula@intel.com>
---
  
Akhil Goyal June 19, 2019, 3:01 p.m. UTC | #2
> 
> Added info about socket id used by compression perf test process and by the
> driver
> 
> Signed-off-by: Tomasz Cel <tomaszx.cel@intel.com>
> Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> Acked-by: Artur Trybula < arturx.trybula@intel.com>
> ---

Applied to dpdk-next-crypto

Thanks.
  

Patch

diff --git a/app/test-compress-perf/main.c b/app/test-compress-perf/main.c
index c2a45d1..21ed12e 100644
--- a/app/test-compress-perf/main.c
+++ b/app/test-compress-perf/main.c
@@ -533,6 +533,9 @@  main(int argc, char **argv)
 	else
 		level = test_data->level.list[0];
 
+	printf("App uses socket: %u\n", rte_socket_id());
+	printf("Driver uses socket: %u\n",
+	       rte_compressdev_socket_id(test_data->cdev_id));
 	printf("Burst size = %u\n", test_data->burst_sz);
 	printf("File size = %zu\n", test_data->input_data_sz);