Author Topic: Do I Need A Bigger Swap Partition?  (Read 2788 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Do I Need A Bigger Swap Partition?
« on: March 17, 2007, 05:03:54 am »
I have meanie's pdaxii13-akita5.3.2 installed on my C3200 with very few extras.
I have inkscape installed, and it is a really cool drawing program, just what I've been looking for.
I posted a screenshot showing the memory bar maxed, and it shows that it's using 405% of memory.
Do I need a bigger swap partition?
My swap partition is 256 MB, is there a way to resize it to 512 MB easily?
« Last Edit: March 18, 2007, 01:41:23 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Do I Need A Bigger Swap Partition?
« Reply #1 on: March 17, 2007, 05:31:56 am »
I simply use 128MB all the time, even for onboard compilation. And the swap memory never seems to get filled up.
I suspect the memory issue here has to do with the package itself? Even big boys like GIMP don't behave like this...
« Last Edit: March 17, 2007, 05:47:53 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Do I Need A Bigger Swap Partition?
« Reply #2 on: March 17, 2007, 12:50:00 pm »
Quote
I posted a screenshot showing the memory bar maxed, and it shows that it's using 405% of memory.
Do I need a bigger swap partition?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156563\"][{POST_SNAPBACK}][/a][/div]
First, I've noticed this before with other memory hogs.  I really like the effect of the "memory bar" blowing the top off the meter and then spilling onto the floor underneath.

The memory meter is obviously calculating the used memory based on what you should have without additional swap.  Do you know what your actual swap usage is?  The top command should show you how much swap is actually being used.

I know that it's simple enough to create a larger swap partition on external storage, although it's a destructive process that would require you to backup your data from any partitions on the card and then restore after you modify the partitions.  If this is on your internal drive, I have no idea what would be involved.
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Do I Need A Bigger Swap Partition?
« Reply #3 on: March 17, 2007, 02:03:02 pm »
typing:
Code: [Select]
free...in a console will tell you how much RAM and swap are being used.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Do I Need A Bigger Swap Partition?
« Reply #4 on: March 17, 2007, 03:48:51 pm »
Quote
typing:
Code: [Select]
free...in a console will tell you how much RAM and swap are being used.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156588\"][{POST_SNAPBACK}][/a][/div]
That's the command I couldn't think of!
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Do I Need A Bigger Swap Partition?
« Reply #5 on: March 17, 2007, 04:02:58 pm »
With inkscape running and a complex drawing loaded: (this time the MEM/CPU icon disappeared).
Code: [Select]
free
              total         used         free       shared      buffers
  Mem:        62292        60932         1360            0           24
 Swap:       250480       250316          164
Total:      312772       311248         1524
I know the above is an extreme case, but lesser drawings consume quite a lot also.
The tiger loaded in the screen shot showed this much swap used. 2480xx
(I don't remember the exact number, but 2480xx is very close)
« Last Edit: March 17, 2007, 04:37:03 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Do I Need A Bigger Swap Partition?
« Reply #6 on: March 17, 2007, 04:39:00 pm »
Wow. The tiger is really eating up the RAM ....    

How is the memory usage in a regular Linux box?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Do I Need A Bigger Swap Partition?
« Reply #7 on: March 17, 2007, 05:14:11 pm »
Quote
Wow. The tiger is really eating up the RAM ....     

How is the memory usage in a regular Linux box?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156595\"][{POST_SNAPBACK}][/a][/div]
1. I'm mostly a windows guy, I don't have a Linux box at the moment, except my 2 Zaurii.
2. inkscape or pdaxii13 doesn't always "release" all the space used on the swap after closing a program. I mentioned this in the inkscape thread, that restarting 'X' "clears" out the swap, and this is what I usually do after using inkscape for awhile.
3. Sometimes, if you are not careful, you can have 2 copies of inkscape running, and that's what I think happened just before I loaded the "Tiger" drawing.
Opening a new drawing, doesn't close the previous drawing. Also using the "close" icon or command results in the same thing as the "quit" icon or command, and closes inkscape. I don't always close a drawing before opening another one.
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Do I Need A Bigger Swap Partition?
« Reply #8 on: March 17, 2007, 05:52:43 pm »
I think you need more physical memory if you're really using that much. I think it was Seymour Cray, he of the supercomputer legend, who said of memory swapping "memory is like sex, better when it's not fake".

Note that linux is quite aggressive in its use of RAM for buffering and caching, so you have to be quite careful when you assume that having low physical memory left means you've really run out.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Do I Need A Bigger Swap Partition?
« Reply #9 on: March 17, 2007, 05:58:06 pm »
I'll just open less complex drawings in inkscape.
In the example above, there was no usability in inkscape. The drawing was too complex to actually do any useful work on a Zaurus.
The tiger drawing in the top post is very sluggish also, but it isn't near as complex as the one I had opened when I typed in the "free" command in the example.
« Last Edit: March 17, 2007, 05:58:32 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers