BSD Ports

misc/buffer 1.17nb1 NetBSD

Buffer sporadic binary I/O for faster tape use

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Categories
misc
Package size
11.9 KiB, 28.0 KiB installed

Description

This is a program designed to speed up writing tapes on remote tape drives. Requirements are shared memory and locks which normally means that these are supported in your kernel. [for FreeBSD/NetBSD, this means you MUST have a kernel with options SYSVSHM compiled in - markm]

Buffer has been tested under SunOS 4.0.*, SunOS 4.1.*, Solarix, HP-UX 7.0, and Gould UTX 2.1A (sv universe).

The program splits itself into two processes. The first process reads (and reblocks) from stdin into a shared memory buffer. The second writes from the shared memory buffer to stdout. Doing it this way means that the writing side effectly sits in a tight write loop and doesn't have to wait for input. Similarly for the input side. It is this waiting that slows down other reblocking processes, like dd.

I run an archive and need to write large chunks out to tape regularly with an ethernet in the way. Using 'buffer' in a command like:

tar cvf - stuff \| rsh somebox "buffer > /dev/rst8"

is a factor of 5 faster than the best alternative, gnu tar with its remote tape option:

tar cvf somebox:/dev/rst8 stuff

In the other systems

SystemPortVersion
NetBSDmisc/buffer1.17nb1
OpenBSDmisc/buffer1.17.1p1

Install

Binary package:

pkgin install buffer

From pkgsrc:

cd /usr/pkgsrc/misc/buffer && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.17nb1
NetBSD 10.1 aarch641.17nb1
SmartOS / illumos x86_641.17nb1
macOS 15 arm641.17nb1

Dependencies

No port depends on this one.