Skip to contentSkip to conversation

Swap partition sizes

DISCUSSION James Kelty 3 participants 3 messages Apr 24, 2002 – Apr 26, 2002

lore
Share & tools
lore
#0 lore raw

Hello! Someone here set up a new machine with 4 Gigs of memory, and they gave the system 8 Gigs of swap. Now, they have a problem. Apparently the OS is only recognizing about two gigs of it.

Here is the fidsk, and meminfo stuff in that order...

Disk /dev/sda: 255 heads, 63 sectors, 2233 cylinders Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1       383   3076416   83  Linux
/dev/sda2           384      1403   8193150   82  Linux swap
/dev/sda3          1404      2233   6666975    5  Extended
/dev/sda5          1404      1913   4096543+  83  Linux
/dev/sda6          1914      2233   2570368+  83  Lin
Mem:  4154732544 4149997568  4734976  5500928 32456704 3929620480
Swap: 2147467264        0 2147467264
MemTotal:      4057356 kB
MemFree:          4624 kB
MemShared:        5372 kB
Buffers:         31696 kB
Cached:        3837520 kB
SwapCached:          0 kB
Active:          13440 kB
Inact_dirty:   3858116 kB
Inact_clean:      3032 kB
Inact_target:     1244 kB
HighTotal:     3211264 kB
HighFree:         2036 kB
LowTotal:       846092 kB
LowFree:          2588 kB
SwapTotal:     2097136 kB
SwapFree:      2097136 kB
NrSwapPages:    524284 pages

I seem to remember somewhere along the line that Linux has a limit on the swap partition size. Is this ture? I just can't seem to find a refference to it!

Thanks!

-James

Signature · 5 lines
James Kelty
Sr. Unix Systems Administrator
Everbase Systems, LLC
[email protected]
541.488.0801
#1 lore raw

He could try to break down swap partition into 4 or more pieces and then activate the little swap partitions and see what happens.

                           ____    ____    o           ~ 
               //     //  / __ \  //   \  // //''''  //\\
              //_____//  / / / / //___ / // //      //  \\
             //     //  / /_/ / // \    // //      //____\\ 
            //     //   \____/ //   \  //  \\.... //      \\

------------------------------------------------------------------------
Comtec Net Romania
----------------------------------------------------
WEB: www.eltop.ro IRC: irc.eltop.ro NEWS: news.eltop.ro
----------------------------------------------------
Horia Chirculescu [email protected]
Mobil: +40 93 205 086

Quoted 56 lines · James Kelty

Hello! Someone here set up a new machine with 4 Gigs of memory, and they gave the system 8 Gigs of swap. Now, they have a problem. Apparently the OS is only recognizing about two gigs of it.

Here is the fidsk, and meminfo stuff in that order...

Disk /dev/sda: 255 heads, 63 sectors, 2233 cylinders Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System

/dev/sda1   *         1       383   3076416   83  Linux
/dev/sda2           384      1403   8193150   82  Linux swap
/dev/sda3          1404      2233   6666975    5  Extended
/dev/sda5          1404      1913   4096543+  83  Linux
/dev/sda6          1914      2233   2570368+  83  Lin
Mem:  4154732544 4149997568  4734976  5500928 32456704 3929620480
Swap: 2147467264        0 2147467264
MemTotal:      4057356 kB
MemFree:          4624 kB
MemShared:        5372 kB
Buffers:         31696 kB
Cached:        3837520 kB
SwapCached:          0 kB
Active:          13440 kB
Inact_dirty:   3858116 kB
Inact_clean:      3032 kB
Inact_target:     1244 kB
HighTotal:     3211264 kB
HighFree:         2036 kB
LowTotal:       846092 kB
LowFree:          2588 kB
SwapTotal:     2097136 kB
SwapFree:      2097136 kB
NrSwapPages:    524284 pages

I seem to remember somewhere along the line that Linux has a limit on the swap partition size. Is this ture? I just can't seem to find a refference to it!

Thanks!

-James

Signature · 10 lines
James Kelty
Sr. Unix Systems Administrator
Everbase Systems, LLC
[email protected]
541.488.0801

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

From the swapon manpage:

"In the new style swap area this is precisely what is done. The maximum useful size of a swap area now depends on the architecture. It is roughly 2GiB on i386, PPC, m68k, ARM, 1GiB on sparc, 512MiB on mips, 128GiB on alpha and 3TiB on sparc64.

Presently, Linux allows 8 swap areas.

Also, you should look at the priority setting. If you set them all at the same priority they will be used in a round robin fashion (somewhat like striping). You'll probably get the best performance by doing that.

HTH,

Chris

Quoted 11 lines · --- Horia Chirculescu

He could try to break down swap partition into 4 or more pieces and then
activate the little swap partitions and see what happens.

                           ____    ____    o           ~ 
               //     //  / __ \  //   \  // //''''  //\\
              //_____//  / / / / //___ / // //      //  \\
             //     //  / /_/ / // \    // //      //____\\ 
            //     //   \____/ //   \  //  \\.... //      \\

------------------------------------------------------------------------

Quoted 70 lines

Comtec Net Romania
----------------------------------------------------
WEB: www.eltop.ro IRC: irc.eltop.ro NEWS: news.eltop.ro
----------------------------------------------------
Horia Chirculescu [email protected]
Mobil: +40 93 205 086

Quoted 1 line · James Kelty

Hello! Someone here set up a new machine with 4 Gigs of memory, and

they

Quoted 1 line

gave the system 8 Gigs of swap. Now, they have a problem.

Apparently the

Quoted 35 lines

OS is only recognizing about two gigs of it.

Here is the fidsk, and meminfo stuff in that order...

Disk /dev/sda: 255 heads, 63 sectors, 2233 cylinders Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System

/dev/sda1   *         1       383   3076416   83  Linux
/dev/sda2           384      1403   8193150   82  Linux swap
/dev/sda3          1404      2233   6666975    5  Extended
/dev/sda5          1404      1913   4096543+  83  Linux
/dev/sda6          1914      2233   2570368+  83  Lin
Mem:  4154732544 4149997568  4734976  5500928 32456704 3929620480
Swap: 2147467264        0 2147467264
MemTotal:      4057356 kB
MemFree:          4624 kB
MemShared:        5372 kB
Buffers:         31696 kB
Cached:        3837520 kB
SwapCached:          0 kB
Active:          13440 kB
Inact_dirty:   3858116 kB
Inact_clean:      3032 kB
Inact_target:     1244 kB
HighTotal:     3211264 kB
HighFree:         2036 kB
LowTotal:       846092 kB
LowFree:          2588 kB
SwapTotal:     2097136 kB
SwapFree:      2097136 kB
NrSwapPages:    524284 pages
Quoted 1 line

I seem to remember somewhere along the line that Linux has a limit

on

Quoted 15 lines

the swap partition size. Is this ture? I just can't seem to find a refference to it!

Thanks!

-James

Signature · 8 lines
James Kelty
Sr. Unix Systems Administrator
Everbase Systems, LLC
[email protected]
541.488.0801

-
To unsubscribe from this list: send the line "unsubscribe

linux-admin" in

Quoted 3 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 7 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/