> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- > boun...@opensolaris.org] On Behalf Of Karl Dalen > > If I want to reduce the I/O accesses for example to SSD media on a > laptop > and I don't plan to run any big applications is it safe to delete the > swap file ? > > How do I configure opensolairs to run without swap ? > I've tried 'swap -d /dev/zvol/dsk/rpool/swap' > but 'swap -s' still shows the same amount of memory > allocated. > > What happens with the /tmp file system when there is no swap device? > I suppose it could fill up the RAM and cause a crash if not limited. > Is there any other potential problem in running without swap?
I don't know if it's safe to disable swap or not, but I know you shouldn't do it, unless you have some unusual requirement. There is a common misconception out there, that using swap hurts performance. This is true if some app consumes more RAM than the system has, but that's the only situation where it's true. A vast majority of the time, the opposite is true. Most of the time, having swap available increases performance. Because the kernel is able to choose: "Should I swap out this idle process, or should I dump files out of cache?" With swap enabled, the kernel is given another degree of freedom, to choose which is colder: idle process memory, or cold cached files. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss