LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-30-2010, 01:47 AM   #1
lukesc
Member
 
Registered: Oct 2007
Posts: 31

Rep: Reputation: 16
/usr/tmpDSK vs physical partition?


Lately my server company has a habit of creating this "virtual partition". They tell me it's a default thing done by the OS (CentOS 5). Thing is, I don't remember this being a default thing in my installations of CentOS 5.

From what I gather it's a virtual partition with the bonus of mounting as noexec and being resizable. Now I may be completely wrong in this, but it seems to me a physical partition would be faster. The last couple servers I've had I've requested a physical partition be made.

The last server I had done I asked for a /tmp partition but ended up with a /usr/tmpDSK type partition. Now the last time this happened I had them add a physical one, but before I do that, is it really necessary?

Are there any pros and cons I'm missing? Are my assumptions wrong? Is this something that is done by default? Or is this just a mistake by someone customizing the partition map wrong?

Thanks in advance!

Luke

Last edited by lukesc; 01-30-2010 at 01:48 AM.
 
Old 01-30-2010, 08:20 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
/usr/tmpDSK vs physical partition
It was perhaps created with a cpanel script rather than by the distro. It has security advantages.

I would be surprised if there was a measurable difference in speed. The small overhead of the loopback layer is going to be lost in the variation noise of any measurements you might make. It might even be slightly faster than a separate partition for /tmp, because the head seek times will be reduced.

If you are using some application that is speed bound by file access to /tmp (unlikely), then you would look at getting more memory (to provide more file caching space) or even create /tmp as a ram based filesystem.
 
Old 01-31-2010, 01:18 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by neonsignal View Post
... create /tmp as a ram based filesystem.
But beware unSpawn that does not think it safe to delete files in /tmp at boot as would happen in it were RAM-based. See this LQ post and follow-ups.
 
Old 01-31-2010, 01:25 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
does not think it safe to delete files in /tmp at boot
From the tldp

"On most systems, this directory is cleared out at boot or at shutdown by the local system. The basis for this was historical precedent and common practice. However, it was not made a requirement because system administration is not within the scope of the FSSTND. For this reason people and programs must not assume that any files or directories in /tmp are preserved between invocations of the program. The reasoning behind this is for compliance with IEEE standard P1003.2 (POSIX, part 2)."
 
Old 01-31-2010, 01:41 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by neonsignal View Post
From the tldp
Thanks for the authoritative citation, neonsignal

I, too, favour and implement emptying /tmp on boot except for any lost+found directory, quota files and security files (not familiar with the last) but I respect unSpawn's opinion and experience.
 
  


Reply

Tags
centos, tmp



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote server mounts /usr as read-only. How to fix without physical access? thatto Linux - Software 1 10-21-2009 05:40 PM
Partition has different physical/logical endings for my Philips GoGear Mp3 Player sfxpt Linux - Software 2 08-07-2008 10:25 PM
Partition 1 has different physical/logical beginnings (non-Linux? kirkb00 Linux - Newbie 1 06-14-2008 06:56 AM
Can I merge ultiple physical discs into one partition? copolii Linux - General 3 12-16-2005 03:59 PM
Partition 1 has different physical/logical endings gulliver Linux - Hardware 4 03-20-2005 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:37 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