Package: pv
Version: 1.5.7-2
Severity: normal

It looks like --buffer-size does not do what I would have expected:

$ strace -e read pv -B 4096 /etc/motd > /dev/null
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\34\2\0\0\0\0\0"..., 
832) = 832
read(3, "# Locale name alias data base.\n#"..., 4096) = 2492
read(3, "", 4096)                       = 0
read(3, "\nThe programs included with the "..., 131072) = 286
read(3, "", 130786)                     = 0
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\5\0\0\0\0\0\0"..., 
832) = 832
 286 O 0:00:00 [59,5KiB/s] 
[===========================================================================================================================================>]
 100%
+++ exited with 0 +++

I would have expected --buffer-size to change the size of the read()
system call as well as the internal buffer size. In fact, I am not
sure I understand what --buffer-size does at all. :)

-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable'), (1, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pv depends on:
ii  libc6  2.19-18+deb8u4

pv recommends no packages.

Versions of packages pv suggests:
ii  doc-base  0.10.6

-- no debconf information

Reply via email to