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> 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.orig 2013-09-16 07:23:52.000000000 +0100
> +++ sipp.cpp 2013-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
> 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=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users