-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 14/01/16 18:53, Steve Langasek wrote: > On Thu, Jan 14, 2016 at 03:54:30PM +0200, Dustin Kirkland wrote: >>> As a data point, I used to have my /tmp on tmpfs while I still had a >>> spinning disk, in order to address the power usage issues of disk flushing. >>> I found it to be a least-bad option which led to serious degradation of >>> desktop interactivity in the face of even moderate memory usage (at the >>> time, with 4GB RAM), and not because of excessive /tmp usage. > >>> And as others in this thread have noted, this same problem can occur in >>> cloud instances. > >> Definitely. /tmp on tmpfs saves energy when you have a spinning HDD, >> and extends the life of your SSD by reducing the number of NAND flash >> writes! > > Sorry, I seem to have not made my point clear. I said this was a *least > bad* option when running on an HDD. I ditched it soon after switching to an > SSD, because it had a horrible impact on desktop interactivity. It might > extend the life of the SSD, but it was certainly shortening mine. > > The correct fix for writing to /tmp causing excessive flushes to disk is to > *fix the thing that's causing flushing to disk*. Trying to dodge by moving > /tmp into tmpfs just shuffles the problem around. > +1 on that. We do have various tools for identifying badly behaving applications that do excessive flushes, for example fnotifystat [1] which I developed to track down bad apps on the phone.
[1] http://kernel.ubuntu.com/~cking/fnotifystat Colin -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWn70ZAAoJEGjCh9/GqAImdDcP/0xGbR7lQ2U+X4teUqUeTbqV kdXqJ9ihbUrRi9EiJRc4xGBIfvF67vSJ/DgMysx6wcLHRtD0VlAiYA7TwywQBujd 3MHylOwEcZRXZjIOI/kCM1LTRttTa0C3QmDSCpPJpMu+2zMhvLIE6F/FCzM1tI+W P8O9lWFEe+jHkhUOzaLx0EgSEdf4MuD1P7F3dy+M89i7nxTYn6f9fcsz/2Sc2JaT eUKFrp54wHfSk91SFvodlSBs+ol/Dnw2zngtNiFBECtI59ZF6JkOlLEMA1auXQju WMEPd7dD/2FU9TiPi66UzSCdbZsIRFEkIDWBWNhDMuFslgzdW3v9W5euELW0PeMU /jwTxozVPrYUyYnkO+RKZ6GD1UPWpQXCZs7Bl8L4Iqa7RPNwR1THCTHYKahyIbxl 9nj4Etqz7PchNPLb2jyv6MLHODYgSIXHLRT3fXhv4QBC4ID9P6OCVL2QwKlmzKPu qIr/POiC/0QDEzNqYexy1TIjFnS9B0V1VKyuKiIm1PYfmBQ0B4k1LktR/s8/Go5m MdsI+ktLS1XSMZlg3d7YwTKARl+ESh6cNy00GLydC2OjrQB+DqzeYybRLBGPpOG7 2s6vudgv4FSmo6OiRC87Es5xb3PuLJBTfm1fpLpMm9SzPfNwwx4ZHJk5YOXtmAOc tkmvrHT5xXnDn4+IY9dU =39RR -----END PGP SIGNATURE----- -- ubuntu-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
