Yes, I agree that it's not a very clean solution - I don't have any
access to OS X, unfortunately, and the problem seems to be OS X
specific. So I think it's best to get that fix in to mitigate the
effects, and then when you or another interested OS X user works out the
real cause, we can back it out and fix it properly.
Best,
Rob
On 17/10/13 16:49, Richard Brady wrote:
Hi Rob
Sorry for delay in replying.
Thanks for this. I will give it a test from that branch but I don't
feel like this is the right long term solution.
Something weird is going on and I'd like to work out what. I think it
*might* have something to do with flushing of stdout. Such as the
issues described by some
<http://idevapps.com/forum/showthread.php?tid=7166> relating to line
buffering behaviour.
Regards,
Richard
On 8 October 2013 10:02, Rob Day <r...@rkd.me.uk
<mailto:r...@rkd.me.uk>> wrote:
On 16/09/13 07:29, Richard Brady wrote:
Ok, some very strange behaviour here. After further debugging
with gdb I have found that adding a short sleep before the stdout
flush resolves the issue:
--- sipp.cpp.orig2013-09-16 07:23:52.000000000 +0100
+++ sipp.cpp2013-09-16 07:26:36.000000000 +0100
@@ -1545,6 +1545,7 @@
} else {
printf("Last Error: %s" SIPP_ENDL, errstart);
}
+sipp_usleep(100);
fflush(stdout);
}
if (command_mode) {
Hi Richard,
I've applied this fix as a new branch, terminal_truncation - would
you mind building the code from
https://github.com/SIPp/sipp/tree/terminal_truncation and seeing
if the fix works?
It's not clear from your message whether a single usleep fixed it
or whether you needed a usleep before every fflush - I've assumed
the former.
Best,
Rob
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get
the most from
the latest Intel processors and coprocessors. See abstracts and
register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
<mailto:Sipp-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users