From: sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: [PATCH 1/2] librdmacm/rstream: Reduce default transfer count
Date: Thu, 21 Feb 2013 06:48:47 -0800 [thread overview]
Message-ID: <1361458128-10134-1-git-send-email-sean.hefty@intel.com> (raw)
From: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
1 million ping-pong transfers takes over 3 seconds to
complete, and I'm impatient. Reduce the default number of
transfers for small messsages to speed up running
performance tests, especially when running over slower
connections, like TCP sockets or over a WAN.
Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
examples/common.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/examples/common.c b/examples/common.c
index 939f50c..4eb5bbe 100644
--- a/examples/common.c
+++ b/examples/common.c
@@ -117,16 +117,14 @@ void cnt_str(char *str, size_t ssize, long long cnt)
int size_to_count(int size)
{
- if (size >= 1000000)
+ if (size >= (1 << 20))
return 100;
- else if (size >= 100000)
+ else if (size >= (1 << 16))
return 1000;
- else if (size >= 10000)
+ else if (size >= (1 << 10))
return 10000;
- else if (size >= 1000)
- return 100000;
else
- return 1000000;
+ return 100000;
}
void format_buf(void *buf, int size)
--
1.7.3
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2013-02-21 14:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-21 14:48 sean.hefty-ral2JQCrhuEAvxtiuMwx3w [this message]
[not found] ` <1361458128-10134-1-git-send-email-sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-02-21 14:48 ` [PATCH 2/2] librdmacm/rsocket: Fix resetting O_NONBLOCK after calling shutdown sean.hefty-ral2JQCrhuEAvxtiuMwx3w
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=1361458128-10134-1-git-send-email-sean.hefty@intel.com \
--to=sean.hefty-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.
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.