Re: How can I determine/increase ramsize?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ramdisk size is controlled by a command-line option tha tis passed to the
kernel during boot. To see what the current size is you can run the
following:
$ dmesg | grep RAMDISK

Next, to increase the size you will need to edit /etc/grub.conf if you
use GRUB as your bootloader. You will need to find the kernel that you
boot and pass it a parameter for "ramdisk_size" as follows:

title Red Hat Linux (2.6.9-42.0.3.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.3.EL ro root-LABEL=/
ramdisk_size=98304 rhgb

In other words, add the ramdisk_size parameter to the current kernel. The
size will be in 1024-byte blocks. After you save the file, you will need
to reboot. After you reboot, run the dmesg command to see what the
current ramdisk is now.

$ dmesg | grep RAMDISK

It should give you the desired size. 

On Wed, 10 Jan 2007 18:09:53 -0600 "Supriya Sriraman"
<sriraman.supriya@xxxxxxxxx> writes:
> I want to determine and increase ram size on RHEL 4.
> 
> Can anyone help me with this?
> 
> I need 96MB, so I used a bs of 1024 and count of 93750 for the dd 
> command.
> It failed.
> 
> FAILS (RHEL 4)
> ==============
> dd if=/dev/zero of=/dev/ram1 bs=1024 count=93750
> dd: writing `/dev/ram1': No space left on device
> 16385+0 records in
> 16384+0 records out
> 
> dd if=/dev/zero of=/dev/ram1 bs=1024 count=16385
> dd: writing `/dev/ram1': No space left on device
> 16385+0 records in
> 16384+0 records out
> 
> Count of 16384 works, but nothing higher does.
> 
> WORKS (RHEL 4)
> ==============
> dd if=/dev/zero of=/dev/ram1 bs=1024 count=16384
> 16384+0 records in
> 16384+0 records out
> 
> dd if=/dev/zero of=/dev/ram2 bs=1024 count=16384
> 16384+0 records in
> 16384+0 records out
> 
> $ cat /proc/meminfo
> MemTotal:     16574352 kB
> MemFree:      14907316 kB
> Buffers:        253092 kB
> Cached:         729308 kB
> SwapCached:        140 kB
> Active:         865416 kB
> Inactive:       272900 kB
> HighTotal:    15794176 kB
> HighFree:     14891264 kB
> LowTotal:       780176 kB
> LowFree:         16052 kB
> SwapTotal:    20414456 kB
> SwapFree:     20414316 kB
> Dirty:               8 kB
> Writeback:           0 kB
> Mapped:         195864 kB
> Slab:           496572 kB
> CommitLimit:  28701632 kB
> Committed_AS:   447724 kB
> PageTables:       5084 kB
> VmallocTotal:   106488 kB
> VmallocUsed:     12016 kB
> VmallocChunk:    94152 kB
> HugePages_Total:     0
> HugePages_Free:      0
> Hugepagesize:     2048 kB
> $ free
>              total       used       free     shared    buffers     
> cached
> Mem:      16574352    1667100   14907252          0     253092     
> 729308
> -/+ buffers/cache:     684700   15889652
> Swap:     20414456        140   20414316
> 
> I have a machine with a Debian distribution on which the dd command 
> with
> 24 count=93750:
> 
> DEBIAN:
> dd if=/dev/zero of=/dev/ram1 bs=1024 count=93750
> 93750+0 records in
> 93750+0 records out
> 
> 
> $ cat
> /proc/meminfo
> 
>         total:    used:    free:  shared: buffers:  cached:
> Mem:  1585790976 1579163648  6627328        0 33210368 1361088512
> Swap: 1073733632 14704640 1059028992
> MemTotal:      1548624 kB
> MemFree:          6472 kB
> MemShared:           0 kB
> Buffers:         32432 kB
> Cached:        1327956 kB
> SwapCached:       1232 kB
> Active:         938112 kB
> Inactive:       428852 kB
> HighTotal:     1048576 kB
> HighFree:         2860 kB
> LowTotal:       500048 kB
> LowFree:          3612 kB
> SwapTotal:     1048568 kB
> SwapFree:      1034208 kB
> $
> free
> 
>              total       used       free     shared    buffers     
> cached
> Mem:       1548624    1542228       6396          0      32432    
> 1328008
> -/+ buffers/cache:     181788    1366836
> Swap:      1048568      14360    1034208
> 
> 
> Thanks!
> -- 
> redhat-list mailing list
> unsubscribe 
> mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 
> 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux