-
Notifications
You must be signed in to change notification settings - Fork 376
tty output: May contain 'more data' than cc-runtime #20
Comments
Confirmed - I'm seeing a lot of nul bytes and what appears to be occasional corruption in the output. /cc @sboeuf. |
Actually, no corruption - just lots of nul byte padding ;) |
A little more info: The extra NULL bytes appear on 'the end' of each buffer full/line of output from the containers. If you run: $ docker run --rm -ti --runtime=kata-runtime busybox echo hello > crud
$ ls -la crud
-rw-rw-r-- 1 guest guest 32768 Jan 29 14:42 crud then you can see the file size is not the 7 bytes I might expect. And, that 32768 is a nicely suspicious binary size. |
Nothing obvious come to my mind but I'll take a look. |
@grahamwhaley here is the fix: kata-containers/agent#124 |
Just confirming this does look fixed with kata-containers/agent#124, but now I see the possibly related kata-containers/agent#125 |
build: Clean up usage
We want to be able to share the same PID namespace across all containers of a sandbox. This commit allows for such a thing by starting a new process from a pause binary, into a new PID ns. This way, the process is considered as init process inside this namespace and the namespace will exist as long as this process runs. Fixes kata-containers#20 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Running:
gives a significantly different answer than:
The line and word counts look similar enough, but the byte count is very different.
Now, it may be that
kata
is passing some of the control characters out from thedmesg
more verbosely or similar, but I've not figured out why yet. If anybody has any ideas, please chip in.Found this when running https://github.com/clearcontainers/tests/blob/master/metrics/time/launch_times.sh#L101, which failed to find the 'end' of the kernel boot - I suspect as the output is so much larger we may have simply run out of buffer space somewhere in the script/shell.
The text was updated successfully, but these errors were encountered: