02-14-2002
Too much swap will result in wasted disk space.
Most systems that are properly configured, running fairly stable software should not swap all that much. I used systems with small amounts of RAM, and I still barely used any swap. Also, swap is slow... Avoid it as much as possible.
As mentioned above, a good rule of thumb for Linux swap is twice the size of your RAM - just in case.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone.
I am new to Linux so hope some one could help me here.
I have a 30 Gb HD and windows Xp is my O/S, HD is not partitioned,but I want to Partitioned it, so I could Install Knoppix(Linux)on one of the partitioned one, how could I do this? OR should I erase every thing and then... (1 Reply)
Discussion started by: amir
1 Replies
2. Filesystems, Disks and Memory
We are still using solaris 1 with sunos 4.1.4 because nobody here knows Unix.
My colleague did a backup (dump) to the wrong place (/dev/sd0h) and we lost this part of the drive. The information is still on tape but we cannot repartition the /dev/sd0h. fsck keeps on about the "wrong SUPER BLOCK"... (2 Replies)
Discussion started by: Tom Bekaert
2 Replies
3. AIX
Good day,
I have an rs/6000 server, model 7044-270. I bought a 2nd hard drive for it but im not sure its the right one. (fru:H13060) As you surely know, the 7044-270 hard drives are put in some sort of tray/carrier. There is a cable that will interface the HDD with the tray/carrier so the... (0 Replies)
Discussion started by: Netghost
0 Replies
4. AIX
Dear all,
I have a AIX server with logical 3 partitions and the server is connecting a tape drive. the first partition can successfully making a system backup to the tape but how can i fail to mount the tape to second and thrid partition. would anyone can help me to deal with it? what command... (3 Replies)
Discussion started by: rickhlwong
3 Replies
5. UNIX for Advanced & Expert Users
Hi
I have an exam question which is below and I am looking for answer of this question:
I would appreciate your help.
* You are the systems administrator of a mail server that services approximately 3,000 users. 2,000
users access their email via a POP-3 service, while the remaining 1,000... (0 Replies)
Discussion started by: tjay83
0 Replies
6. Solaris
Solaris 10 5/08 on Ultra 40 M2
It boots fine off primary disk but having issues booting off the mirror disk.
I get this error when booting off mirror disk:
Booting 'Solaris 10 ... Mirror disk'
root (hd1,0,a)
Error 22: No such partition
Press any key to continue...
Any... (7 Replies)
Discussion started by: etc
7 Replies
7. Solaris
Ok. Here is the situation, I have server A which need to access /tmp folder of server B. Can I mount NFS share (/tmp) from client (serverA)?please let me know (3 Replies)
Discussion started by: sam101
3 Replies
8. OS X (Apple)
Hi ,
I have a Mac OS X Lion mac book pro. I have a hard drive which I have partitioned in two
(a) OSX Partition - Mac OS Extended Journaled format. Mount point: /
(b) Data Partition - Windows NT Filesystem format. Mount point: /Volumes/Data
I need to access the NTFS partition (I have a... (6 Replies)
Discussion started by: neil.k
6 Replies
9. Shell Programming and Scripting
Hello Everyone! I have a file called “cells” with 3 set of #'s, roughly 400+ lines. My current tool "movrcs" grabs the “cells” file, and creates one huge “mov_rcs” script which is a problem. I want the tool to grab 20 lines of the "cells" file at a time, and create separate script files for... (3 Replies)
Discussion started by: birdboyee
3 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I've been working on a script to run a disk wipe (using Jim Garlick's scrub tool) on the filesystem in Xerox production printer RIPs.
Easy enough if there's just one partition, but I need to cater for the possibility of multiple drives/partitions, and either ZFS or UFS (don't know if... (2 Replies)
Discussion started by: DavidDawesFXA
2 Replies
nswapfs(5) File Formats Manual nswapfs(5)
NAME
nswapfs - maximum number of file systems that can be enabled for swap
VALUES
Default
Allowed values
DESCRIPTION
File system swap devices are managed in a table for easier indexing in the kernel. sets the kernel variable responsible for the upper
limit on this table, and thus the upper limit to file systems which can be used for swap.
Who is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to this tunable take effect at the next reboot.
When Should the Value of This Tunable Be Raised?
If another file system swap is added to the system which would increase the number above then returns to the caller (see the swapon(2) man-
page).
What Are the Side Effects of Raising the Value?
More file systems for swap can be added to the system, and the kernel will need a little more memory for the table. A small performance
side effect of the kernel having to scan more file systems to check for a duplicate during swapon is also true, but realistically negligi-
ble.
When Should the Value of This Tunable Be Lowered?
Only if you are sure the system will never go over a certain number of swap file systems, and you wish to lower this tunable to save a
small amount of kernel memory and kernel performance during swapon operations.
What Are the Side Effects of Lowering the Value?
No side effects other than the primary and presumably desired new limitation on the number of swap file systems.
What Other Tunable Values Should Be Changed at the Same Time?
None.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
Tunable Kernel Parameters nswapfs(5)