LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2010, 09:31 AM   #1
chuckp123
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
RamDisk causing kernel panic


I am attempting to set up Ramdisk for use with an application with lots of disk IO. I am in the testing phase right now, and am having some problems. The server that I am using currently has 3GB of memory in it. I have increased the size of the ramdisks to 256MB.

Code:
[root@myserver ~]# dmesg | grep RAMDISK
RAMDISK driver initialized: 16 RAM disks of 262144K size 4096 blocksize
I am creating my Ramdisk drive with the following commands:

Code:
[root@myserver ~]# pvcreate /dev/ram0 /dev/ram1 /dev/ram2 /dev/ram3
[root@myserver ~]# vgcreate vg1 /dev/ram0 /dev/ram1 /dev/ram2 /dev/ram3
[root@myserver ~]# lvcreate -L 1000M -n ramlv vg1
[root@myserver ~]# mkfs.ext2 /dev/vg1/ramlv
[root@myserver ~]# mount -o noatime /dev/vg1/ramlv /mnt/ramdisk
After creating the drive, when I issue the free command, I notice that I'm still showing a total of 3GB of memory. I'm not sure if this is what it is supposed to show. Anyway, once I start placing data on the ramdisk, I starting getting low memory errors on the console, which then eventually lead to a kernel panic and crash.

So my question is, is there a way for the memory being used for Ramdisk to be separated from the memory that the system is using? I would expect that once I formatted the Ramdisk that it would not try to use it for system memory anymore.
 
Old 02-16-2010, 05:45 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,160

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
I would suggest you look at tmpfs - that way you can swap space to alleviate RAM contention. Ramdisk is so last millenium.

Have a look at ../Documentation/filesystems/*
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drives causing kernel panic in slack 11 tehkaao Linux - Hardware 1 09-19-2007 07:35 AM
Kernel 2868 causing a kernel panic Jongi Fedora 6 12-27-2006 01:09 PM
Kernel Upgrade causing Kernel Panic DragonM15 Linux - Software 28 12-20-2006 10:41 AM
switching to mkinitcpio causing kernel panic due to raid' Fredde87 Linux - Kernel 2 12-05-2006 03:29 AM
Linux 2.6 PCI driver module causing kernel panic on remove (rmmod) briek Linux - Software 2 09-18-2006 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration