Tips and Tricks

s2p supports various caching modes. Which mode provides the best throughput depends on the Pi model and the available memory. Thus the proof of the pudding is in the eating. The following table lists the available settings. Note that these may change in upcoming SCSI2Pi releases. You select the caching mode for each device separately with the command line option "--caching-mode" or the property "caching_mode", resp., e.g in /etc/s2p.conf.

Mode Remark
piscsi This is the default setting. It is a simple cache, which can only deal with complete sectors. Thus this cache only partially supports the SCSI commands READ/WRITE LONG.
linux This cache uses the Linux filesystem cache and needs the least memory. Like the following modes it fully supports the SCSI commands READ/WRITE LONG.
linux-optimized Like linux, but reads/writes several sectors at once and requires more memory.
write-through Like linux, but writes back the image file data immediately.

When using the DaynaPort emulation based on the information in the PiSCSI wiki there is no need to manually set up a bridge. On launch s2p automatically creates a bridge for physical interfaces ("eth*"), if needed, and automatically removes it when terminating. The bridge creation can be switched off if needed:

>s2p -i 6 -t scdp bridge=false

With a Pi with ethernet and Wifi interface s2p uses the ethernet interface for the DaynaPort emulation. wlan0 is used instead of eth0 when launching s2p with the interface option, optionally with an IP address and/or a netmask:

>s2p -i 6 -t scdp interface=wlan0[:inet=a.b.c.d/m]

As an alternative, e.g. in /etc/s2p.conf, you can configure the interface and the netmask with a property:


Atari users who use the STiNG driver for the DaynaPort should use the latest version 0.81 of this driver.