Re: Moving /tmp to tmpfs makes it useful

2012-06-05 Thread Serge
2012/6/5 Goswin von Brederlow wrote: > You keep claiming tmpfs compromises system stability. Can you show a > kernel oops of a crash caused by tmpfs? No crashes, system just becomes slow and hard/impossible to use. See the Stefan Lippers-Hollmann email about tmpfs vs disk writes. System that does

Re: Moving /tmp to tmpfs makes it useful

2012-06-05 Thread Goswin von Brederlow
Serge writes: > 2012/6/1 Goswin von Brederlow wrote: > >> All the complaints about /tmp as tmpfs come down to one simple issue: >> The size of the tmpfs isn't chosen well. > > Mounting /tmp to tmpfs not just breaks a lot of apps and reduces system > stability, but it actually does nothing else. Y

Re: Moving /tmp to tmpfs makes it useful

2012-06-05 Thread Goswin von Brederlow
Mike Hommey writes: > On Tue, Jun 05, 2012 at 09:29:46AM +0300, Serge wrote: >> 2012/6/1 Goswin von Brederlow wrote: >> >> > All the complaints about /tmp as tmpfs come down to one simple issue: >> > The size of the tmpfs isn't chosen well. >> >> Mounting /tmp to tmpfs not just breaks a lot of

Re: Moving /tmp to tmpfs makes it useful

2012-06-04 Thread Mike Hommey
On Tue, Jun 05, 2012 at 09:29:46AM +0300, Serge wrote: > 2012/6/1 Goswin von Brederlow wrote: > > > All the complaints about /tmp as tmpfs come down to one simple issue: > > The size of the tmpfs isn't chosen well. > > Mounting /tmp to tmpfs not just breaks a lot of apps and reduces system > stab

Re: Moving /tmp to tmpfs makes it useful

2012-06-04 Thread Serge
2012/6/1 Goswin von Brederlow wrote: > All the complaints about /tmp as tmpfs come down to one simple issue: > The size of the tmpfs isn't chosen well. Mounting /tmp to tmpfs not just breaks a lot of apps and reduces system stability, but it actually does nothing else. You get no benefits from /t

Re: Moving /tmp to tmpfs makes it useful

2012-06-01 Thread Goswin von Brederlow
Serge writes: > I'm asking for *popular* apps, that create files in /tmp, *never put > large files* there, and become *noticeably* faster with /tmp on tmpfs? gcc, ocamlopt, mc, lintian MfG Goswin -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsu

Re: Moving /tmp to tmpfs makes it useful

2012-05-31 Thread Stephan Seitz
On Thu, May 31, 2012 at 12:46:49AM +0300, Uoti Urpala wrote: Also, nowadays normal filesystems are journaled; using a journal for writes to /tmp damages the SSD for zero benefit. Writing to /tmp will damage a SSD? Are you serious? And writing to /var or /home will not? If SSDs are so easy da

Re: Moving /tmp to tmpfs makes it useful

2012-05-30 Thread Serge
2012/5/31 Uoti Urpala wrote: >> you eat cache memory. Meaning, you store /tmp files in cache even when >> they're not used, so kernel cannot use that memory to store some useful >> files. This increases I/O and makes the system slower. > > The tmpfs files will be written to swap if they aren't acc

Re: Moving /tmp to tmpfs makes it useful

2012-05-30 Thread Uoti Urpala
Serge wrote: > you eat cache memory. Meaning, you store /tmp files in cache even when > they're not used, so kernel cannot use that memory to store some useful > files. This increases I/O and makes the system slower. The tmpfs files will be written to swap if they aren't accessed much and the kern

Re: Moving /tmp to tmpfs makes it useful

2012-05-30 Thread Serge
2012/5/30 Vincent Lefevre wrote: >>> So what? If you write to a normal file system, it goes into the page >>> cache, which is pretty much the same as writing into tmpfs. In both >>> cases if you have swap configured, the data will get pushed to disk; >> >> That's not at all the same, the page ca

Re: Moving /tmp to tmpfs makes it useful

2012-05-30 Thread Vincent Lefevre
On 2012-05-25 14:49:14 +0100, Will Daniels wrote: > On 25/05/12 13:52, Ted Ts'o wrote: > >So what? If you write to a normal file system, it goes into the page > >cache, which is pretty much the same as writing into tmpfs. In both > >cases if you have swap configured, the data will get pushed to d

Re: Moving /tmp to tmpfs makes it useful

2012-05-29 Thread Aneurin Price
On 26 May 2012 19:20, Carlos Alberto Lopez Perez wrote: > *Important*: use "df -h /tmp" NOT "du -hs /tmp", since the flash player > deletes the file entry from /tmp as soon as it gets the inode allocated. > I believe this a measure to "prevent" piracy (people ripping the video > from /tmp) I thin

Re: Moving /tmp to tmpfs makes it useful

2012-05-28 Thread Carlos Alberto Lopez Perez
On 28/05/12 08:15, Miles Bader wrote: > Salvo Tomaselli writes: >>> This is indeed a valid point. But that’s no regression; /tmp has >>> always been for small short-lived files, and /var/tmp for those >>> that are not one of them or not both. >> >> You just made up this difference. > > No he didn

Re: Moving /tmp to tmpfs makes it useful

2012-05-27 Thread Miles Bader
Salvo Tomaselli writes: >> This is indeed a valid point. But that’s no regression; /tmp has >> always been for small short-lived files, and /var/tmp for those >> that are not one of them or not both. > > You just made up this difference. No he didn't, it's common practice from unix-days-of-yore (

Re: Moving /tmp to tmpfs makes it useful

2012-05-27 Thread Carlos Alberto Lopez Perez
On 27/05/12 20:01, Thorsten Glaser wrote: > This is indeed a valid point. But that’s no regression; /tmp has > always been for small short-lived files, and /var/tmp for those > that are not one of them or not both. I am still waiting for someone to tell me where is said that /tmp should be for sma

Re: Moving /tmp to tmpfs makes it useful

2012-05-27 Thread Salvo Tomaselli
> This is indeed a valid point. But that’s no regression; /tmp has > always been for small short-lived files, and /var/tmp for those > that are not one of them or not both. You just made up this difference. Nothing nowhere says anything about the size of the files. The only thing mentioned is th

Re: Moving /tmp to tmpfs makes it useful

2012-05-27 Thread Thorsten Glaser
Joey Hess dixit: >If programs that write large files to /tmp are changed to usr /var/tmp, >then over time a system will accumulate orphaned large tmp files in >/var/tmp. Nothing will come along and clean them up. This is indeed a valid point. But that’s no regression; /tmp has always been for sma

Re: Moving /tmp to tmpfs makes it useful

2012-05-27 Thread Thomas Goirand
On 05/27/2012 02:35 AM, François Bottin wrote: > My point is that I can't stand that the major point to not use tmpfs > is caused by a closed source software. If you think it is faulty, then > do not use it! > By the way, I can't reproduce your problem. That's probably due to the > fact that there

Re: Moving /tmp to tmpfs makes it useful

2012-05-27 Thread Thomas Goirand
On 05/27/2012 02:55 AM, Mike Hommey wrote: > I hope it isn't, because it's poor "security". It's easy to read the > file from /proc/$pid/fd/$num > > Mike > If you were to trust Adobe in terms of security, then you'd be the first person I know to do so. Jokes set apart, I believe that they just

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Joey Hess
Ted Ts'o wrote: > If you're worried about installations which don't have much memory > (i.e., the 512mb netbook), then swap is absolutely mandatory, I would > think! Not really. I have no legitimate programs that use more than 50% of my 1 gb. I have an SSD. So why enable swap? If chromium goes cr

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Mike Hommey
On Sat, May 26, 2012 at 08:20:46PM +0200, Carlos Alberto Lopez Perez wrote: > On 26/05/12 19:43, Russ Allbery wrote: > > Carlos Alberto Lopez Perez writes: > >> On 26/05/12 19:13, Russ Allbery wrote: > > > >>> I find some of the assertions in this thread confusing. I've been > >>> using tmpfs /t

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread François Bottin
On 05/26/2012 07:08 PM, Thomas Goirand wrote: On 05/26/2012 11:14 PM, François Bottin wrote: On 05/26/2012 04:47 PM, Thomas Goirand wrote: Try playing a 2h video with flash, and see that 60 MB isn't enough... If Adobe Flash is broken, then fix it! I will let you ask the sources from Adobe,

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Russ Allbery
Carlos Alberto Lopez Perez writes: > On 26/05/12 19:43, Russ Allbery wrote: >> Carlos Alberto Lopez Perez writes: >>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666096 >> That bug contains little actual information, not even what software was >> being used. > Ok... so you want a prove?

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Carlos Alberto Lopez Perez
On 26/05/12 19:43, Russ Allbery wrote: > Carlos Alberto Lopez Perez writes: >> On 26/05/12 19:13, Russ Allbery wrote: > >>> I find some of the assertions in this thread confusing. I've been >>> using tmpfs /tmp on my laptop for quite some time and have watched >>> hour-long movies via the Adobe

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Russ Allbery
Carlos Alberto Lopez Perez writes: > On 26/05/12 19:13, Russ Allbery wrote: >> I find some of the assertions in this thread confusing. I've been >> using tmpfs /tmp on my laptop for quite some time and have watched >> hour-long movies via the Adobe Flash player and have never noticed any >> unex

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Carlos Alberto Lopez Perez
On 26/05/12 19:13, Russ Allbery wrote: > Thomas Goirand writes: > >> I will let you ask the sources from Adobe, create an alternative *that >> works*. I will also let you fix all the other apps that we mentioned >> that have the same kind of issues. But *IN THE MEAN WHILE*, until you >> are done

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Russ Allbery
Thomas Goirand writes: > I will let you ask the sources from Adobe, create an alternative *that > works*. I will also let you fix all the other apps that we mentioned > that have the same kind of issues. But *IN THE MEAN WHILE*, until you > are done with this huge and important work, let's not ch

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Thomas Goirand
On 05/26/2012 11:14 PM, François Bottin wrote: > On 05/26/2012 04:47 PM, Thomas Goirand wrote: >> Try playing a 2h video with flash, and see that 60 MB isn't enough... > > If Adobe Flash is broken, then fix it! > > I will let you ask the sources from Adobe, create an alternative *that works*. I wil

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread François Bottin
On 05/26/2012 04:47 PM, Thomas Goirand wrote: Try playing a 2h video with flash, and see that 60 MB isn't enough... If Adobe Flash is broken, then fix it! -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debia

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Thomas Goirand
On 05/26/2012 01:33 PM, Clint Byrum wrote: > On laptops and other power sensitive devices, this is pretty critical. > > Hypothetical: I have 2GB of RAM, and I want to watch a 50MB video file > on a connection that will take, say, 10 minutes to cache the whole thing > (and its a 10 minute video). >

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Andrey Rahmatullin
On Sat, May 26, 2012 at 10:47:37PM +0800, Thomas Goirand wrote: > >>> /tmp 8,0G 60M 8,0G1% /tmp > >>> Does this count as "large files"? > >>> As "a lot of small-only files"? > >>> > >>> > >> Exactly how is this a practical explanation and example? :/ >

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Thomas Goirand
On 05/26/2012 04:40 PM, Andrey Rahmatullin wrote: > On Sat, May 26, 2012 at 03:24:02AM +0800, Thomas Goirand wrote: > >>> /tmp 8,0G 60M 8,0G1% /tmp >>> Does this count as "large files"? >>> As "a lot of small-only files"? >>> >>> >> Exactly how is th

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Serge
2012/5/26 Clint Byrum: > On laptops and other power sensitive devices, this is pretty critical. > Hypothetical: I have 2GB of RAM, and I want to watch a 50MB video file > on a connection that will take, say, 10 minutes to cache the whole thing > (and its a 10 minute video). > With a regular file

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Weldon Goree
On Fri, 25 May 2012 21:56:55 -0400 Ted Ts'o wrote: > > The major difference is that tmpfs pages only get written out to swap > when the system is under memory pressure. In contrast, pages which > are backed by a filesystem will start being written to disk after 30 > seconds _or_ if the system i

Re: Moving /tmp to tmpfs makes it useful

2012-05-26 Thread Andrey Rahmatullin
On Sat, May 26, 2012 at 03:24:02AM +0800, Thomas Goirand wrote: > > /tmp 8,0G 60M 8,0G1% /tmp > > Does this count as "large files"? > > As "a lot of small-only files"? > > > Exactly how is this a practical explanation and example? :/ > Are you saying that in *

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Clint Byrum
Excerpts from Ted Ts'o's message of 2012-05-25 18:56:55 -0700: > On Fri, May 25, 2012 at 02:49:14PM +0100, Will Daniels wrote: > > On 25/05/12 13:52, Ted Ts'o wrote: > > >So what? If you write to a normal file system, it goes into the page > > >cache, which is pretty much the same as writing into

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Serge
2012/5/26 Miles Bader wrote: >> I'm asking for *popular* apps, that create files in /tmp, *never put >> large files* there, and become *noticeably* faster with /tmp on tmpfs? > Is that even the issue, for the most part? My impression is that > using tmpfs is just logistically simpler and safer -

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Ted Ts'o
On Fri, May 25, 2012 at 02:49:14PM +0100, Will Daniels wrote: > On 25/05/12 13:52, Ted Ts'o wrote: > >So what? If you write to a normal file system, it goes into the page > >cache, which is pretty much the same as writing into tmpfs. In both > >cases if you have swap configured, the data will get

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Miles Bader
Serge writes: > I'm asking for *popular* apps, that create files in /tmp, *never put > large files* there, and become *noticeably* faster with /tmp on tmpfs? Is that even the issue, for the most part? My impression is that using tmpfs is just logistically simpler and safer -- it can be mounted v

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Serge
2012/5/25 Thorsten Glaser wrote: Ok, we have guesses, let's do some TESTS... >> Can you name some popular real-world program that write >> only small files and become noticeably faster when /tmp is on tmpfs? > Most shell scripts using << (here documents). mc, out of all things, > as long as the

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Miles Bader
Serge writes: >> Every tool either supports setting TMPDIR=/var/tmp before running >> it or is buggy. Go fix these instead > > Do I understand you right? You suggest every tool that need large > tmp files to use /var/tmp instead? That's not a new suggestion, it's been standard practice for nigh-

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Thomas Goirand
On 05/26/2012 12:21 AM, Thorsten Glaser wrote: > What you want is > to optimise for a corner case. > Ah... So Mysql, flash videos, mc, image editors, cd burners, and all the (very common) examples he gave are just "corner cases" in your book? We must have very different readings... Thomas --

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Thomas Goirand
On 05/25/2012 10:20 PM, Andrey Rahmatullin wrote: > /tmp 8,0G 60M 8,0G1% /tmp > Does this count as "large files"? > As "a lot of small-only files"? > Exactly how is this a practical explanation and example? :/ Are you saying that in *your case* /tmp is almost

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Thorsten Glaser
Serge dixit: >cases. Can you name some popular real-world program that write >only small files and become noticeably faster when /tmp is on tmpfs? Most shell scripts using << (here documents). mc, out of all things, as long as the temporary files (e.g. of a tarball) fit inside it. And countless

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Andrey Rahmatullin
On Fri, May 25, 2012 at 05:08:37PM +0300, Serge wrote: > > Why do you assume tmpfs contents is always written to the swap? > > Most programs, using /tmp for temporary files, may write *large* files > there. So most programs fill tmpfs with large files. So tmpfs grows and > swaps out (probably swap

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Serge
2012/5/25 Andrey Rahmatullin wrote: > Why do you assume tmpfs contents is always written to the swap? Most programs, using /tmp for temporary files, may write *large* files there. So most programs fill tmpfs with large files. So tmpfs grows and swaps out (probably swapping out other applications

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Will Daniels
On 25/05/12 13:50, Serge wrote: Again, I'm not asking to drop this feature. I'm asking to have it disabled *by default* but supported by debian installer, so really smart people, that know what may be broken by it, but really need it, could enable it. +1 On 25/05/12 13:52, Ted Ts'o wrote: So

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Andrey Rahmatullin
On Fri, May 25, 2012 at 03:50:31PM +0300, Serge wrote: > /tmp on tmpfs won't help in that case. You do not reduce number of disk > writes, you just move them to other directories. As you suggested, all > the programs will still use files i.e. in /var/tmp. Or they'll write to > swap if tmpfs is larg

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Serge
2012/5/25 Thorsten Glaser wrote: > It’s faster because the files don’t even get written to disc if > they’re kept for, say, five minutes, and aren’t just short-lived. Theoretically, yes. But I'm not asking to forbid everybody to use tmpfs. We're talking about defaults and about the most used test

Re: Moving /tmp to tmpfs makes it useful

2012-05-25 Thread Thorsten Glaser
Henrique de Moraes Holschuh dixit: >On Fri, 25 May 2012, Thomas Goirand wrote: >> for small files, and in that case, it's faster. In reality, it's >> not that much faster, thanks to Linux caching of the filesystem, > >Under heavy filesystem IO load, yes it is. By several orders of magnitude. Not