Results 1 to 5 of 5

Thread: Ramdisk (re)size/adjust size

  1. #1
    Junior Member
    Join Date
    Aug 2003
    Location
    Austria
    Posts
    2

    Ramdisk (re)size/adjust size

    I have some Java development stuff on an external SCSI drive and actually no files in the /home/knoppix. From time to time Eclipse crashed, same for Konqueror. With 256MB RAM, Knoppix takes a full 199MB for ramdisk. I want to size this down as much as possible because it seems running out of RAM is the reason for the apps crashing?
    I have checked the forum and google but the only cheatcode I found was "mem" which does NOT what I want. I do not want to set how much RAM is visible to Linux but how much of the total is taken up by that ramdisk.
    Maybe someone can tell me how to do that or point me to a useful link!

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    I don't think you can do it out of the box. There are two options that I can think of :

    1. extract boot.img and miniroot.gz from it then change linuxrc, that is where how large the ram disk is specified.

    2. setup swap space, assuming you have a HD.

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Ramdisk (re)size/adjust size

    --The ramdisk should allocate memory dynamically depending on how much data is stored on it; the size reported by 'df' is the *maximum* size. There should be no need to resize it.

    --Try starting ' konqueror ' and eclipse manually from a terminal window, and see what error messages they give when a crash happens. It's not at all uncommon for browsers to crash, sometimes it just happens.

    Quote Originally Posted by hnt
    I have some Java development stuff on an external SCSI drive and actually no files in the /home/knoppix. From time to time Eclipse crashed, same for Konqueror. With 256MB RAM, Knoppix takes a full 199MB for ramdisk. I want to size this down as much as possible because it seems running out of RAM is the reason for the apps crashing?
    I have checked the forum and google but the only cheatcode I found was "mem" which does NOT what I want. I do not want to set how much RAM is visible to Linux but how much of the total is taken up by that ramdisk.
    Maybe someone can tell me how to do that or point me to a useful link!

  4. #4
    Junior Member
    Join Date
    Aug 2003
    Location
    Austria
    Posts
    2

    JVM terminated

    Thanks for the input! Ill try setting up some swap - could have really thought of that one
    I tried to get some error-msg from Eclipse though the error came from the JVM itself (dialog popped up):
    "JVM terminated. Exit code=-1 /usr/bin/java -cp /mnt/sdc2/java/eclipse/./startup.jar org.eclipse.core.launcher.Main -os linux -ws gtk -arch x86 -showsplash [...] -showsplash 600"
    At that time, eclipse was still "running" in the console.
    Once you closed it, eclipse was gone too without any message.
    I let free check mem every 3 seconds, this is the worst output it gave me - that was shortly before JVM hang up.
    Code:
                 total       used       free     shared    buffers     cached
    Mem:           250        248          2          0          5         45
    -/+ buffers/cache:        197         53
    Swap:            0          0          0
    Ill just try with some swap now...

  5. #5
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: JVM terminated

    Helpful tip - if you are using kDE, it's a resource hog. Try using icewm or other more lightweight WM to save on memory.

    Quote Originally Posted by hnt
    Thanks for the input! Ill try setting up some swap - could have really thought of that one
    I tried to get some error-msg from Eclipse though the error came from the JVM itself (dialog popped up):
    "JVM terminated. Exit code=-1 /usr/bin/java -cp /mnt/sdc2/java/eclipse/./startup.jar org.eclipse.core.launcher.Main -os linux -ws gtk -arch x86 -showsplash [...] -showsplash 600"
    At that time, eclipse was still "running" in the console.
    Once you closed it, eclipse was gone too without any message.
    I let free check mem every 3 seconds, this is the worst output it gave me - that was shortly before JVM hang up.
    Code:
                 total       used       free     shared    buffers     cached
    Mem:           250        248          2          0          5         45
    -/+ buffers/cache:        197         53
    Swap:            0          0          0
    Ill just try with some swap now...

Similar Threads

  1. ISO Size
    By jesselong in forum Customising & Remastering
    Replies: 5
    Last Post: 05-26-2004, 01:24 PM
  2. Size?
    By AP in forum Customising & Remastering
    Replies: 0
    Last Post: 04-11-2004, 03:36 AM
  3. Possible 9-24 ISO size problem
    By bluegreenone in forum General Support
    Replies: 4
    Last Post: 10-14-2003, 11:16 AM
  4. image size
    By image in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 09-23-2003, 02:19 AM
  5. Screen Size
    By CHINAMAN in forum General Support
    Replies: 2
    Last Post: 09-22-2003, 03:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Watchguard XCS 570 Firewall SuperMicro 1U Server Intel 4GB VPN Router LINUX 🍁 picture

Watchguard XCS 570 Firewall SuperMicro 1U Server Intel 4GB VPN Router LINUX 🍁

$145.79



KRAMBU 8 GPU 4U Barebone Server picture

KRAMBU 8 GPU 4U Barebone Server

$1499.99



Red Hat Enterprise Linux 5 Server - New and Sealed picture

Red Hat Enterprise Linux 5 Server - New and Sealed

$16.99



1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00



IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8 picture

IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8

$449.96



IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E picture

IBM E850 Power8 2x 12C 3.02GHz 512Gb 1.8Tb SAS 10GbE 16Gb Linux Server 8408-E8E

$674.96



PFSENSE 15

PFSENSE 15" Depth Server Router Firewall Supermicro X11SSH-F E3-1240 V5 32GB RAM

$382.00



IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L picture

IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L

$599.95



Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux picture

Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux

$836.80



POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives picture

POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives

$179.99