So how can I prevent my server from eating up disk space?
There is a JSON configuration file in your bzz directory. You can set the two relevant storage capacity options to a custom value.
You find this in the relevant section of the swarm guide
Note: Zero memory cache size (
CacheCapacity) is not going to work. Set that to at least a decent value of a few hundred.
(i.e. run Swarm in a mode that it doesn't write anything)
It's not a good idea to not write anything. You can set
DbCapacity to an acceptable value c (then the disk space used by Swarm is estimated at roughly
c * 4Kb with some added
O(logn) overhead). Using c = 5000 will take up roughly 25Mb on disk.