Quoting Sorin Srbu sorin.srbu@orgfarm.uu.se:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On
Behalf
Of Geerd-Dietger Hoffmann Sent: Saturday, December 12, 2009 11:22 PM To: CentOS mailing list Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
On Sat, Dec 12, 2009 at 10:05 PM, Thomas Dukes tdukes@sc.rr.com wrote:
I have the /tmp in memory, which effectively deletes everything on reboot. Maybe another solution?
How do you achieve that?
/Sorin
using tmpfs?
http://kevin.vanzonneveld.net/techblog/article/create_turbocharged_storage_u...
-- Eero
-----Original Message----- From: Eero Volotinen [mailto:eero.volotinen@iki.fi] Sent: Monday, December 14, 2009 9:27 AM To: CentOS mailing list; Sorin Srbu Cc: 'CentOS mailing list' Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
I have the /tmp in memory, which effectively deletes everything on reboot. Maybe another solution?
How do you achieve that?
/Sorin
using tmpfs?
http://kevin.vanzonneveld.net/techblog/article/create_turbocharged_storage_
using_t
mpfs/
Thanks, I'll look up on this. Have a few machines that would most probably benefit from this.
Amazing, this temp-cache-in-RAM is a déjà vu from my OS/2-days some ten-ish years back... Never thought I'd use the same techniques now as then. 8-)
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Eero Volotinen Sent: Monday, December 14, 2009 3:27 AM To: CentOS mailing list; Sorin Srbu Cc: 'CentOS mailing list' Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
Quoting Sorin Srbu sorin.srbu@orgfarm.uu.se:
-----Original Message----- From: centos-bounces@centos.org
[mailto:centos-bounces@centos.org] On
Behalf
Of Geerd-Dietger Hoffmann Sent: Saturday, December 12, 2009 11:22 PM To: CentOS mailing list Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
On Sat, Dec 12, 2009 at 10:05 PM, Thomas Dukes
tdukes@sc.rr.com wrote:
I have the /tmp in memory, which effectively deletes everything on reboot. Maybe another solution?
How do you achieve that?
/Sorin
using tmpfs?
http://kevin.vanzonneveld.net/techblog/article/create_turbocha rged_storage_using_tmpfs/
One thing that's not clear in the two links that have been posted about doing this is, do you add the line or replace the the line already present in /etc/fstab?
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 <---------- none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
Thanks
On Dec 14, 2009, at 7:14 AM, "Thomas Dukes" tdukes@sc.rr.com wrote:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Eero Volotinen Sent: Monday, December 14, 2009 3:27 AM To: CentOS mailing list; Sorin Srbu Cc: 'CentOS mailing list' Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
Quoting Sorin Srbu sorin.srbu@orgfarm.uu.se:
-----Original Message----- From: centos-bounces@centos.org
[mailto:centos-bounces@centos.org] On
Behalf
Of Geerd-Dietger Hoffmann Sent: Saturday, December 12, 2009 11:22 PM To: CentOS mailing list Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
On Sat, Dec 12, 2009 at 10:05 PM, Thomas Dukes
tdukes@sc.rr.com wrote:
I have the /tmp in memory, which effectively deletes everything on reboot. Maybe another solution?
How do you achieve that?
/Sorin
using tmpfs?
http://kevin.vanzonneveld.net/techblog/article/create_turbocha rged_storage_using_tmpfs/
One thing that's not clear in the two links that have been posted about doing this is, do you add the line or replace the the line already present in /etc/fstab?
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 <---------- none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
Here is what I put in my fstab:
tmpfs /tmp tmpfs defaults 0 0
And your done. By default it will use 1/2 of your memory and under pressure it's first to swap and even if you run off swap it gives comparable performance to the way it is now.
-Ross
---- Ross Walker rswwalker@gmail.com wrote:
On Dec 14, 2009, at 7:14 AM, "Thomas Dukes" tdukes@sc.rr.com wrote:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Eero Volotinen Sent: Monday, December 14, 2009 3:27 AM To: CentOS mailing list; Sorin Srbu Cc: 'CentOS mailing list' Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
Quoting Sorin Srbu sorin.srbu@orgfarm.uu.se:
-----Original Message----- From: centos-bounces@centos.org
[mailto:centos-bounces@centos.org] On
Behalf
Of Geerd-Dietger Hoffmann Sent: Saturday, December 12, 2009 11:22 PM To: CentOS mailing list Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
On Sat, Dec 12, 2009 at 10:05 PM, Thomas Dukes
tdukes@sc.rr.com wrote:
I have the /tmp in memory, which effectively deletes everything on reboot. Maybe another solution?
How do you achieve that?
/Sorin
using tmpfs?
http://kevin.vanzonneveld.net/techblog/article/create_turbocha rged_storage_using_tmpfs/
One thing that's not clear in the two links that have been posted about doing this is, do you add the line or replace the the line already present in /etc/fstab?
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 <---------- none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
Here is what I put in my fstab:
tmpfs /tmp tmpfs defaults 0 0
And your done. By default it will use 1/2 of your memory and under pressure it's first to swap and even if you run off swap it gives comparable performance to the way it is now.
-Ross
Thanks, Ross
Do I leave this line in tact or remove/replace it:
none /dev/shm tmpfs
On Dec 14, 2009, at 9:55 AM, tdukes@sc.rr.com wrote:
---- Ross Walker rswwalker@gmail.com wrote:
On Dec 14, 2009, at 7:14 AM, "Thomas Dukes" tdukes@sc.rr.com wrote:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Eero Volotinen Sent: Monday, December 14, 2009 3:27 AM To: CentOS mailing list; Sorin Srbu Cc: 'CentOS mailing list' Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
Quoting Sorin Srbu sorin.srbu@orgfarm.uu.se:
-----Original Message----- From: centos-bounces@centos.org
[mailto:centos-bounces@centos.org] On
Behalf
Of Geerd-Dietger Hoffmann Sent: Saturday, December 12, 2009 11:22 PM To: CentOS mailing list Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
On Sat, Dec 12, 2009 at 10:05 PM, Thomas Dukes
tdukes@sc.rr.com wrote:
I have the /tmp in memory, which effectively deletes everything on reboot. Maybe another solution?
How do you achieve that?
/Sorin
using tmpfs?
http://kevin.vanzonneveld.net/techblog/article/create_turbocha rged_storage_using_tmpfs/
One thing that's not clear in the two links that have been posted about doing this is, do you add the line or replace the the line already present in /etc/fstab?
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 <---------- none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
Here is what I put in my fstab:
tmpfs /tmp tmpfs defaults 0 0
And your done. By default it will use 1/2 of your memory and under pressure it's first to swap and even if you run off swap it gives comparable performance to the way it is now.
-Ross
Thanks, Ross
Do I leave this line in tact or remove/replace it:
none /dev/shm tmpfs
No, leave the existing /dev/shm, some apps depend on it.
You can use the 'none' keyword too for /tmp as in:
none /tmp tmpfs defaults 0 0
Either 'tmpfs' or 'none' should work.
-Ross