My compiles are failing on Solaris 11.3 due to out of memory kills. The box is an UltraSPARC workstation with 600GB drives and 8 GB of RAM and a fresh OS install. It is absolutely befuddling there's not enough memory for the system and I am suffering DoS'es out of the box.
I'm trying to follow Adding Swap Space on a Solaris System to add some more space.
# Step 1 $ sudo su - ... # Step 2 # mkdir /var mkdir: Failed to make directory "/var"; File exists # mkfile 2048m /var/swap # Step 3 # ls -l /var/swap -rw------- 1 root root 2147483648 Jul 16 11:42 /var/swap # Step 4 # swap -a /var/swap "/var/swap" is not valid for swapping. It must be a block device or a regular file with the "save user text on execution" bit set. I have two questions. First, what is so broken at Oracle that nearly every document is wrong?
Second, how do I create the god damn swap space? How do I make the T appear in an ls listing?
Here is the doc's Step 3. Notice the addition of the T:
Verify that the file was created by typing:
ls -l /directory/swap-file-nameThe new file appears in the directory. For example:
ls -l /foo/16mswap -rw------T 1 root other 16777216 Dec 12 14:24 /foo/16mswap
swapman page even states: "Using a regular file for swap is not supported on a ZFS file system."