Author Topic: Low Memory Message! - Debian On C3000  (Read 4458 times)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« on: May 27, 2005, 12:01:15 am »
Hi,

On the whole, got X/Qt/Debian running OK on my lil' C3000....

However, lately, often when doing 'apt-get upgrade' I get a 'Low Memory' warning message window that pops up on the Qtopia side of the Z. Gives me a button that says 'Reboot'....at that point X/Qt/Debian has quit....

I recently reinstalled X/Qt/Debian on my Z to the internal microdrive...

Any suggestions to avoid this problem??

Thanks for any help.

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #1 on: May 31, 2005, 12:48:37 pm »
Maybe some more detailed info will help someone to advise, please....

In Qtopia System Info app, here's what I see:

'Storage' Tab:

Program Area: 398,282 KB

Used:                58,425 KB

Available:        339,857 KB


'Internal Disk' Tab:

Total:           3,478,852 KB

Used:           1,311,184 KB

Available:     2,167,668 KB

'Memory' Tab:

Total:             62,036 KB

Used:             24,568 KB

Free:             37,468 KB


Also, just did 'df' in QKonsole and got the following:
Code: [Select]
Filesystem    1k-blocks     Used        Available  Use%   Mounted on
rootfs                5120       5120                  0  100%    /
/dev/root           5120       5120                  0  100%    /
/dev/mtdblock3  4096       2968             1128    72%   /home                  
/dev/ram1             44          30                 14    68%   /dev
none                  1024          00               944     8%   /dev/shm
/dev/hda1         99521    62005            32377   66%   /hdd1
/dev/hda2       398282    37862          339857   10%   /hdd2
/dev/hda3      3478852  1311184      2167668   38%   /hdd3
/dev/mmcda1  999040    877104        121936   88%   /usr/mnt.rom/card
/dev/loop0     1032088    299804        679856   31%   /hdd3/debroot
/dev/mmcda1  999040    877104        121936   88%   /hdd3/debroot/mnt/card

Also, using Cacko b1.23 ROM with Tetsu 18a kernel....

Would greatly appreciate any input on how to deal with the low memory warnings... if need other info, let me know...

Thanks for any help!

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

daemon1

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #2 on: May 31, 2005, 05:23:35 pm »
Quote
Hi,

On the whole, got X/Qt/Debian running OK on my lil' C3000....

However, lately, often when doing 'apt-get upgrade' I get a 'Low Memory' warning message window that pops up on the Qtopia side of the Z. Gives me a button that says 'Reboot'....at that point X/Qt/Debian has quit....

I recently reinstalled X/Qt/Debian on my Z to the internal microdrive...

Any suggestions to avoid this problem??

Thanks for any help.

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=81718\"][{POST_SNAPBACK}][/a][/div]

have you tried adding quite a large swap file? I had this setup running up until yesterday, made a 650mb debian loopback partition and a 200mb swap and it was fine. had to do a factory reset yesterday because i broke something when installing new tetsu kernel, not related to debian.
C3000 - Debian EABI - Kernel 2.6.23 of Angstrom

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #3 on: May 31, 2005, 05:55:39 pm »
Thanks for your input, daemon1!

Yes, I added a swapfile as per Meanie's install instructions on his webpage...don't remember off the top of my head the size of it...

Mark

Quote
have you tried adding quite a large swap file? I had this setup running up until yesterday, made a 650mb debian loopback partition and a 200mb swap and it was fine. had to do a factory reset yesterday because i broke something when installing new tetsu kernel, not related to debian.

Quote
Hi,

On the whole, got X/Qt/Debian running OK on my lil' C3000....

However, lately, often when doing 'apt-get upgrade' I get a 'Low Memory' warning message window that pops up on the Qtopia side of the Z. Gives me a button that says 'Reboot'....at that point X/Qt/Debian has quit....

I recently reinstalled X/Qt/Debian on my Z to the internal microdrive...

Any suggestions to avoid this problem??

Thanks for any help.

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #4 on: May 31, 2005, 06:59:26 pm »
Thought I'd clarify a bit on my previous post....

FWIW, I installed X/Qt/Debian this last time per Meanie's webpage.

I installed Debian to hdd3 using a loopback (instead of SD card) as he described.

I created a loopback filesystem on /hdd3 with 1024MB. He suggested either 256MB or 512MB if you wanted to install OpenOffice. So I thought what the heck, make it 1024...  

Was that a mistake to make it so big?

Also, I did setup a 128MB swapfile per his instructions on /hdd3.

HTH,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #5 on: June 02, 2005, 11:23:34 am »
Hey guys, it pretty lonely here all by myself...  

77 views of these posts and only one reply....

Really would appreciate some more input from some of the gang here...

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #6 on: June 02, 2005, 04:39:14 pm »
Well, maybe I've figured what the *%$# is going on...  

Here's what I got....

[CODE]
#cat /proc/meminfo
                        total:      used:            free:    shared:      buffers:     cached:
Mem:         63524864      60510208    3014656         0      4165632   25546752
Swap:                    0                  0               0    
MemTotal:                        62036kB
MemFree:                           2944kB
MemShared:                            0kB
Buffers:                              4068kB
Cached:                            24948kB
SwapCached:      0kB
Active:                               2944kB
Inactive:                           26072kB
HighTotal:                                0kB
HighFree:                                 0kB
LowTotal:                          62036kB
LowFree:                             2944kB
SwapTotal:                               0kB
SwapFree:                                0kB

So it looks like even though I thought I had setup swap space correctly, it seems that I have zero (0) right??

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Low Memory Message! - Debian On C3000
« Reply #7 on: June 03, 2005, 08:21:35 am »
Quote
Well, maybe I've figured what the *%$# is going on...   

Here's what I got....

[CODE]
#cat /proc/meminfo
                        total:      used:            free:    shared:      buffers:     cached:
Mem:         63524864      60510208    3014656         0      4165632   25546752
Swap:                    0                  0               0     
MemTotal:                        62036kB
MemFree:                           2944kB
MemShared:                            0kB
Buffers:                              4068kB
Cached:                            24948kB
SwapCached:      0kB
Active:                               2944kB
Inactive:                           26072kB
HighTotal:                                0kB
HighFree:                                 0kB
LowTotal:                          62036kB
LowFree:                             2944kB
SwapTotal:                               0kB
SwapFree:                                0kB

So it looks like even though I thought I had setup swap space correctly, it seems that I have zero (0) right??

Thanks,

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82548\"][{POST_SNAPBACK}][/a][/div]

yeah, swap is not enabled.
to be certain, do a cat /proc/swaps as well, but it looks like its not enabled.
swap needs to be re-enabled each time you reboot.
where did you put your swapfile?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #8 on: June 03, 2005, 09:22:26 am »
Thanks for your help, Meanie!

You are right as usual...checked this last night and redid swap and voila!

It works well now....

Forgot that you had to re-enable each time you boot!

Well, live and learn....  

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Low Memory Message! - Debian On C3000
« Reply #9 on: June 03, 2005, 09:45:00 am »
Quote
Thanks for your help, Meanie!

You are right as usual...checked this last night and redid swap and voila!

It works well now....

Forgot that you had to re-enable each time you boot!

Well, live and learn....   

Thanks,

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82627\"][{POST_SNAPBACK}][/a][/div]

Are you using my startx-wrapper script (ie xlauncher) because it tries to enable the swapfile if it is /hdd3/swapfile and it has the priviledge to do so (sudo for swapon is enabled or run as root)
of course you can change the script to tell it to look for the swapfile somewhere else as well
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #10 on: June 03, 2005, 09:57:06 am »
Meanie, I am using your 'xqt-debian scripts'.

Is this the same thing?

Does this mean that I don't have to re-enable swap each time I reboot if I'm using your script??

Thanks,

Mark

Quote
Are you using my startx-wrapper script (ie xlauncher) because it tries to enable the swapfile if it is /hdd3/swapfile and it has the priviledge to do so (sudo for swapon is enabled or run as root)
of course you can change the script to tell it to look for the swapfile somewhere else as well
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82631\"][{POST_SNAPBACK}][/a][/div]
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Low Memory Message! - Debian On C3000
« Reply #11 on: June 03, 2005, 10:16:53 am »
Quote
Meanie, I am using your 'xqt-debian scripts'.

Is this the same thing?

Does this mean that I don't have to re-enable swap each time I reboot if I'm using your script??

Thanks,

Mark

Quote
Are you using my startx-wrapper script (ie xlauncher) because it tries to enable the swapfile if it is /hdd3/swapfile and it has the priviledge to do so (sudo for swapon is enabled or run as root)
of course you can change the script to tell it to look for the swapfile somewhere else as well
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82631\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82633\"][{POST_SNAPBACK}][/a][/div]

yes, xlauncher (startx-wrapper mods) is part of the xqt-debian-scripts package.

if you start debian by running
# xlauncher debian
or tap on the debian icon on qtopia it should enable the swapfile automatically for you provided it has the right filename and is in the right place (or you edit the file and give it the right info ie modify the line SWAPFILE=/hdd3/swapfile) and sudo has been configured to allow zaurus user to execute /sbin/swapon
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
Low Memory Message! - Debian On C3000
« Reply #12 on: June 03, 2005, 12:02:07 pm »
Thanks for clarifying, Meanie!

Usually, I start by tapping on the Debian icon and I think I've set it up OK (per your excellent webpage!), so sounds like I should be OK, but will check it.

Thanks,

Mark


Quote
yes, xlauncher (startx-wrapper mods) is part of the xqt-debian-scripts package.

if you start debian by running
# xlauncher debian
or tap on the debian icon on qtopia it should enable the swapfile automatically for you provided it has the right filename and is in the right place (or you edit the file and give it the right info ie modify the line SWAPFILE=/hdd3/swapfile) and sudo has been configured to allow zaurus user to execute /sbin/swapon
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82638\"][{POST_SNAPBACK}][/a][/div]
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/