linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Swap partition sizes
@ 2002-04-24 20:06 James Kelty
  2002-04-25  7:06 ` Horia Chirculescu
  0 siblings, 1 reply; 3+ messages in thread
From: James Kelty @ 2002-04-24 20:06 UTC (permalink / raw)
  To: Linux Admin

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
-- 
James Kelty
Sr. Unix Systems Administrator
Everbase Systems, LLC
jamesk@everbase.net
541.488.0801


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Swap partition sizes
  2002-04-24 20:06 Swap partition sizes James Kelty
@ 2002-04-25  7:06 ` Horia Chirculescu
  2002-04-26 19:08   ` Christopher Slater
  0 siblings, 1 reply; 3+ messages in thread
From: Horia Chirculescu @ 2002-04-25  7:06 UTC (permalink / raw)
  To: James Kelty; +Cc: Linux Admin

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 root@eltop.ro
                         Mobil: +40 93 205 086

On Wed, 24 Apr 2002, James Kelty wrote:

> 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
> -- 
> James Kelty
> Sr. Unix Systems Administrator
> Everbase Systems, LLC
> jamesk@everbase.net
> 541.488.0801
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Swap partition sizes
  2002-04-25  7:06 ` Horia Chirculescu
@ 2002-04-26 19:08   ` Christopher Slater
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Slater @ 2002-04-26 19:08 UTC (permalink / raw)
  To: Horia Chirculescu, James Kelty; +Cc: Linux Admin

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

--- Horia Chirculescu <horia@ct2.eltop.ro> wrote:
> 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 root@eltop.ro
>                          Mobil: +40 93 205 086
> 
> On Wed, 24 Apr 2002, James Kelty wrote:
> 
> > 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
> > -- 
> > James Kelty
> > Sr. Unix Systems Administrator
> > Everbase Systems, LLC
> > jamesk@everbase.net
> > 541.488.0801
> > 
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> linux-admin" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-26 19:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-24 20:06 Swap partition sizes James Kelty
2002-04-25  7:06 ` Horia Chirculescu
2002-04-26 19:08   ` Christopher Slater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).