Re: Memory, swap, and limits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mikkel L. Ellertson wrote:
James Kosin wrote:
Having TOO much swap space can be a detriment and not an asset. Usually, the rule of thumb I go by is allocate about 2x the amount of physical memory installed on the system; for machines with < 1M. This number will need to approach more or less 1x for machines with 1-2M. With machines with > 2M; I'm not sure swap space will make much of a difference, unless you rely on X heavily.

James

I have never head of a problem of having too much swap space. What kind of problems does it cause? I know you get system slowdown if you are doing too much swapping, but that is a different problem from having too much swap space.

Mikkel
Ok,

(1) The operating system has to manage the swap space like it manages memory space and allocation. The swap space is a big area that has to be divided up just like the RAM. The OS uses what is commonly called a page table to accomplish this. (2) As the memory and or swap space gets used and divided up with the applications this page table gets larger and larger (don't worry, there is a limit).

Here is were it takes some understanding, I'm lacking at the moment. To keep track of everything we have a single page table and a bit determines if we are talking about physical memory or swap memory. In the OS; everything (or almost so) uses this page table to look up virtual addresses and maps them to physical addresses. If the address is in swap space then a disk access is needed to get to the data; weather it pages the application back to physical RAM at this point is really up to the OS, some do and some don't. This page table has to reside in PHYSICAL RAM somewhere usually to keep the access time down to a reasonable level. If the page table grows too large you get issues with the table and lookup issues.

James

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux