[ts-gen] MacOS Shim problems

Bill Pippin pippin at owlriver.net
Fri May 22 15:20:23 EDT 2009


Mike,

The most recent release of the shim should fix the buffering problem
you've observed.  More precisely, when the shim is started with the
cout option in order to log events to the stdout, the shim sets
buffer policy for stdout as follows:

As long as shim is in risk mode, or the bulk option is *not* provided
in data mode, the shim uses the setvbuf() library call to set line
buffering for stdout.

The bulk option returns the shim to its previous behavior, of
accepting the system-provided buffer mode and size for stdout.
Although this is fine for keyboard testing --- the stdout is then
set to line-buffered --- the OS tries to optimize for throughput
with pipes, and chooses large buffers in that case, which seems
to be the problem you've been seeing.

So, please download the newest tarball, rebuild your database
as described in my previous post to Ric, and try out the new
shim.

Thanks,

Bill


More information about the ts-general mailing list