General :: Keeping A RAMdisk Out Of Swap
Dec 15, 2010
I'm using some milters on a Sendmail box that recommends using a RAMdisk [tmpfs] to store temporary files, the performance benefits of which are quite noticeable. However, the problem is if a huge number of messages are all delivered at once this partition can be pushed off the physical memory and into swap. When this happens the performance tanks to about 1/20th to 1/30th of normal.Is there anything I can do to keep a tempfs from being swapped to disk?
View 3 Replies
ADVERTISEMENT
Feb 19, 2010
I know it's possible, but does anyone have a URL or tutorial on how to do this?
View 3 Replies
View Related
Sep 30, 2010
I am trying to config the RAM disk on CentOS 5.5
/etc/grub.conf
title CentOS (2.6.18-194.el5)
root (hd0,0)
[code].....
View 2 Replies
View Related
Mar 12, 2010
I am using fc11(32-bit) and i want to boot the system using initial ramdisk by setting the root to /dev/ram in the /etc/grub.conf.c
View 2 Replies
View Related
Feb 18, 2010
I am trying to use the Linux Ramdisk y machine and followed the instructions oninux/Ramdisk/ramdisk.html to create a 4GB ramdisk (total memory is 8GB, linux 2.6.9)The issue is that it is taking me almost exactly the same time to read a 1GB file from ramdisk as it is from disk. I was expecting it to be atleast twice as fast.Has anyone encountered this before?
View 1 Replies
View Related
Jun 28, 2011
I'm running 64 bit ubuntu 11.04, installed off dvd onto dell inspiron 530 if thats helpful.
This is my first attempt at linux ever so i know absolutely NOTHING about it.
View 9 Replies
View Related
Jan 11, 2010
Xandros isn't keeping its repostorie Apps. updated. I tried Ubuntu 9.04 and it was good with only a minor change, (wireless was slow). Got a workround from Ubuntu forum. Login as root I was able to fix it, I updated to Ubuntu 10. Wireless was slow again. I tried logging on as root. Ubuntu 10. has lockout root and sudo won't let me add (iwconfig wlan rate 54M) to a boot up program to fix it. I went back to 9.04 now it wouldn't let me sign in as root. I next tried Debian Lenny. The screen res. was 1600 x 900? And for Dabian Lenny the screen res. is set automatically and can't be set manually, so I could not finish the install. So I'm back to Xandros 4.1 needing help to keep it up to date.
View 2 Replies
View Related
Dec 21, 2010
I'm currently running a Vista machine, but would like to switch over to Linux, Ubuntu in particular. My question is can I switch over to Ubuntu, keep my Windows partition and use VirtualBox to access the pre-existing Windows partition? Or does VirtualBox require me to create a new install for Guest operating systems?
If not, are there any other free alternatives to accomplish this?
View 3 Replies
View Related
Oct 4, 2010
My friend just got a gaming laptop that he won't let anyone else use (his last one got infected when his girlfriend surfed on it for just one hour -- he refuses to use antivirus since he claims he knows how to keep clean, but he doesn't trust others).
Because I used Linux a bit once, I said to him what if I could promise not to make any changes to your hard drive, and I told him that I was pretty sure I could boot to a live cd and then only write files to a usb key. He's actually willing to let me try (I showed him some linux sites I was looking at, and he believes me that we can do this).
1) Is there anything I either MUST do or else must NOT do to make sure I make no changes to his laptop's hard drive? And so that any changes are only going to go on the usb drive I hook up?
2) Since he's got an i7 processor, I assume I should get a version of ubuntu that supports 64 bits, right?
View 6 Replies
View Related
Sep 7, 2011
I've been writing a bunch of bash scripts to make possible non-interactive, secure, cron-based SVN checkouts with CollabNet's SVN client and GNOME Keyring Daemon (aka GKD) and one of the scripts was designed to start GKD, harvest its output, essentially a couple of environment variables, and export those variables in shell of a user the script is run as. All upon user login by sourcing a bash script in ~/.bashrc.The problem is that those environment variables will not be exported, because the script is being run in a sub-shell that exits upon it completion and environment variables get unset for good.Well, the question is how can those variables be set permanently, meaning they're exported and kept untouched even across login-logout sessions?
View 1 Replies
View Related
Jun 21, 2010
I'm looking at an rc.sysinit:
# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~
# Enter root, /proc and (potentially) /proc/bus/usb and devfs into mtab.
mount -f /
mount -f /proc
mount -f /sys >/dev/null 2>&1
mount -f /dev/pts
I can't figure out what those "~"'s are doing. From the comments it's keeping mtab open to write the next (how many?) commands?
View 1 Replies
View Related
Oct 6, 2010
I have a text file that gets produced at the end of the script being run.
For this example the text file will produce the following:
Quote:
THE COW
THE DOG
THE CAT
THE HORSE
In the script I am using either echo or printf to print on the screen each line and then it is doing a test and produces a good or bad result.
Another example:
Quote:
THE COW -- IS HOME
THE DOG -- IS HOME
Each whitespace between the -- are 5 spaces. How can I get them to be in-line and formatted when it gets to more words, when THE HORSE arrives.
Example:
Quote:
THE COW -- IS HOME
THE DOG -- IS HOME
THE CAT -- IS HOME
THE HORSE -- IS HOME <-- This has only 3 whitespaces but is still formatted.
View 8 Replies
View Related
Mar 20, 2011
Does one need to Check the Swap filesystem, from time to time
View 4 Replies
View Related
Dec 7, 2010
Lucid on an Acer Travelmate800.Can anyone tell me why I have 0k for swap space? I allocated swap which I can see in my Disk Utility's 'volumes' display.
View 5 Replies
View Related
Oct 11, 2010
I have a server running an older version of Ubuntu and with /var stored on a separate partition on a separate hard drive. I am attempting to update Ubuntu to 10.04, but I still want to store /var on a separate partition and hard drive. However, I don't want to format the drive which currently contains /var, as it has important data.
Is there some way to have 10.04 set up the new /var on this separate drive at installation, without formatting the drive and losing the old /var?
View 1 Replies
View Related
Aug 16, 2010
RAM for older machines like I use is fairly cheap these days. But flash memory is just as cheap or cheaper. So I'd like to ask about the feasibility of expanding my system's memory using flash memory. And about whether creating a partition for swap on the flash memory, or whether a swap file on the flash device, is the better way to go.
By flash memory I have in mind mainly USB sticks or what are sometimes called "pen drives." But I do also have CF and SD cards that, with the proper cheap adapter (one of which I already own for adapting CF) could be used to create extra swap space. So, what is the current consensus on the feasibility/advisability of using flash memory for swap? I've read about the limited write cycles of flash being an argument against using it for swap. But recent reading indicates to me that the limited write cycles problem applies mostly to older, smaller-capacity flash memory. Some will come out and say that, for larger-capacity flash memory, the life of the device is likely to exceed the amount of time your current computer will be useful (I think I've seen estimates in the range of 3-4 years life--minimum--for newer, higher-capacity flash memory).
A more persuasive argument I've heard against using flash memory for swap is that access times for these devices can be much slower than SATA, and maybe even IDE, hard drives. That would certainly dictate against using flash memory for swap.
So, how about some input on this issue? Anyone using flash memory for swap? If so, what kind (e.g., usb stick or SD/CF)? Are you using a swap file or a swap partition? How's system performance? Likewise, has anyone had flash-memory-used-as-swap die on them? The consequences would undoubtedly be dire. Also, has anyone measured flash memory access times to confirm or refute claims about slow access times? Are some types of flash memory better/worse than others in terms of access times?
View 2 Replies
View Related
Mar 9, 2011
I have inherited our Linux packaging and as the number of versions increase, the number of conflicts is starting to get a bit unmanageable. I believe the easiest way would have been to keep the package names the same and just change the release in the spec file but unfortunately I am past that as a lot of these packages are rolled out to our estate. (I am told there were reasons for not keeping the package name the same and incrementing the version/release)
Is it possible to wildcard conflicts so I don't need to keep adding as new versions are created. For example, instead of using all the conflicts below, have something along the lines of AAtest45* <= 1.4 & BBtest45* <= 1.4 Meaning that all I would need to do was change this to 1.5 at the next release (the packages below version matched the release in the spec file)
[Code]....
View 2 Replies
View Related
Jun 8, 2010
I would like to keep track of not only what bash commands I used and when, but also where they were issued from, i.e. what was the current working directory when I issued "foobar" on a particular day and time. Can we ask bash history to keep track of working directories too? I have tried to get an idea of this reading the enormous "man bash", but I don't seem to have an answer yet either way.
View 11 Replies
View Related
Jul 6, 2010
I'm trying to truncate a postfix Maildata directory for one of our users. I want to be able to move any files older than <n> days to a new location, but also copying the relevant directory structure. This should be doable in the one comman. I've used find to locate the files, and mv to move them, but I can't figure out how to build the directoryt structure on the fly in the new location.
This is what I have so far:
Code:
find /Maildata/editor -mtime +42 -type f -exec mv -v {} /EditorEmailOld/ ; > ~/editor.txt
View 4 Replies
View Related
Aug 18, 2010
I have ubuntu 10.04 on my HP Compaq laptop, and use evolution mail. Is there a way to delete an attachment I received, while keeping the rest of the body of that mail?
View 4 Replies
View Related
Dec 9, 2009
how could i mount the whole system into the ramdisk?I follow the article "http://www.linuxquestions.org/questions/red-hat-31/building-a-diskless-redhat-enterprise-linux-cluster-765393/",and it works.when i use the "df -h" on the diskless client .I find many system driectory is mountted from image_server.when i stop the connection between img_server and diskless client,the diskless client stop working. my question is how can i mount the whole system into ramdisk.
View 2 Replies
View Related
May 18, 2010
Does anyone know is there any size limitation when doing RAMDISK under SUSE Linux?
View 9 Replies
View Related
Aug 4, 2011
Have such a question: how to set ramdisk size? Ramdisk: How do you install and set up Ramdisk under Linux (CentOS, RHEL, Fedora)? | Technology: Learn and Share
Here is some article, but somehow GRUB setting takes no effect, size is still limited to 100MB. I need to get ramdisk with size about 700-1500 MB.
View 9 Replies
View Related
Feb 17, 2010
Wine is one of the coolest things I've ever seen, but unfortunately it's still not enough to suit my needs as version 1.38 can't install any of the .NET libraries.
I'm trying to boot windows 7 on virtual box, but it seems to demand quite a bit of memory. The "recommended" amount is 512MB, and upon checking my kernel only has 488MB total ram with not much room to spare:
Code:
billy@billy-desktop:~$ free -m
total used free shared buffers cached
Mem: 488 462 25 0 53 193
-/+ buffers/cache: 216 271
Swap: 1939 17 1921
I've tried giving the virtual machine memory sizes in the area of 192-256MB, but that's way too much and the system locks up and aborts from it. Memory sizes in the area of 128MB is just too small and it throws an error that there just isn't enough ram to boot. So the only thing I can do to make this work is to increase the size of the ramdisk for my host OS so I can give more to the virtual machine (not to mention things like flash animations are horribly slow and I'd like to see them get more fluid).
I see that I have 16 ramdisks available to me:
Code:
billy@billy-desktop:~$ ls -l /dev/ram*
brw-rw---- 1 root disk 1, 0 2010-02-17 09:54 /dev/ram0
brw-rw---- 1 root disk 1, 1 2010-02-17 09:54 /dev/ram1
brw-rw---- 1 root disk 1, 10 2010-02-17 09:54 /dev/ram10
[Code]....
I looked at some guides here and there, but apparently my setup isn't quite the same. I don't have a menu.lst file in boot/grub, and I don't have a grub.conf file anywhere. So I don't know what file I'm supposed to edit for this.
View 2 Replies
View Related
Feb 1, 2011
Trying to mount a ramdisk on demand when I need one, however gksudo is griping that the command is wrong. So, what's wrong with this command?
gksudo mount -t tmpfs -o size=1024m tmpfs /mnt/ramdisk
View 3 Replies
View Related
Jun 20, 2010
I am trying to boot a ramdisk and am getting the following error:16384 ram0 (driver?)
16384 ram181 (driver?) No filesystem could mount root, tried:ext2 iso9660. Kernel panic - not syncing:VFS:Unable to mount root fs on unknown-block (1,0)
This is RHEL5 so input the ramdisk_blocksize into isolinux.cfg:
DEFAULT linux
LABEL linux
KERNEL vmlinuz
APPEND initrd=initrd.img root=/dev/ram0 ramdisk_blocksize=1024 ramdisk=2969600 rw init=/etc/rc.d/rc.sysinit
[Code]...
View 9 Replies
View Related
Feb 24, 2009
I need to get LILO to boot a ramdisk in which the root file system is on /dev/ramdisk. I have tried many iterations of lilo.conf files. The following is one that I would think would work because it worked under 2.4 kernels:
default=linux
boot=/dev/hda
install=/mnt/flash/boot/boot.b
[code]...
View 2 Replies
View Related
Apr 23, 2010
I created a ram disk with this command: sudo mount -t tmpfs -o size=2048M,nr_inodes=500k,mode=777 tmpfs /var/cache/apt-build/build When I run apt-build, I got an error message that the disk is full (unable to copy file or something). But no disk was full when I checked with 'df'.
we know the maximum of files created from the nr_inodes number? Or is there any other option that determines the max number of files created?
View 2 Replies
View Related
Sep 8, 2010
How do I set up a 256mb ramdisk on opensuse 11.3 x86_64 ? - The /boot/grub/menu.lst content reads as:
# Modified by YaST2. Last modification on Mon Aug 30 11:33:28 EST 2010
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
default 0
timeout 8
gfxmenu (hd0,1)/boot/message
[Code]....
View 3 Replies
View Related
Mar 30, 2011
I updated my netbook to the last incarnation of slackware-current yesterday.
My problem is now, that it is no more able to start the ash shell of the initial ramdisk i am using. The ramdisk was created with the latest version of the mkinitrd script.
The error message is:
Code:
And the error happens when the ash from the initial ramdisk is intended to be started. Simply copying the /lib/libc.so.6 stuff (symlink to the real so and the real so) enables to ash to be started but later cryptsetup fails to load.
The initial ramdisk from mid-January i used before did not have such a problem. What i also see is, that the failing ramdisk has a size of only 16k blocks. The one from mid-January was bigger.
View 2 Replies
View Related