public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] mounts options on a laptop
@ 2011-03-05 10:48 Stéphane Guedon
  2011-03-05 11:29 ` Florian Philipp
       [not found] ` <AANLkTi=pd-hxLEsMsR1DjKh7KFTOenoe1PTpEGJiBHF9@mail.gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Stéphane Guedon @ 2011-03-05 10:48 UTC (permalink / raw
  To: gentoo-user, gentoo-laptop

[-- Attachment #1: Type: Text/Plain, Size: 1078 bytes --]

I have a laptop, it works quite good, but I would like to improve battery 
length.

The fact is that, out of the classical options (kernel custom, KDE battery 
management...), there's no information about disk mount options, whereas it 
eat a lot of power.

my current mount :

rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,commit=0)
/dev/shm on /tmp type tmpfs (rw,nosuid,nodev)
/dev/sda7 on /var type reiserfs (rw)
/dev/sda8 on /media/musique type vfat (rw,uid=0,gid=18,umask=007)
/dev/sda2 on /windows type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda6 on /home type ext4 (rw,user_xattr,commit=0)

and sda5 as swap.

how to make it better ? (I know reiserfs is not a good idea, but at the moment 
of building the system, it seamed good for little files/DB...)

I have read of mounting part of /var as tmpfs... ?

-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] mounts options on a laptop
  2011-03-05 10:48 [gentoo-user] mounts options on a laptop Stéphane Guedon
@ 2011-03-05 11:29 ` Florian Philipp
       [not found] ` <AANLkTi=pd-hxLEsMsR1DjKh7KFTOenoe1PTpEGJiBHF9@mail.gmail.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Florian Philipp @ 2011-03-05 11:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

Am 05.03.2011 11:48, schrieb Stéphane Guedon:
> I have a laptop, it works quite good, but I would like to improve battery 
> length.
> 
> The fact is that, out of the classical options (kernel custom, KDE battery 
> management...), there's no information about disk mount options, whereas it 
> eat a lot of power.
> 
> my current mount :
> 
> rootfs on / type rootfs (rw)
> /dev/root on / type ext3 (rw,commit=0)
> /dev/shm on /tmp type tmpfs (rw,nosuid,nodev)
> /dev/sda7 on /var type reiserfs (rw)
> /dev/sda8 on /media/musique type vfat (rw,uid=0,gid=18,umask=007)
> /dev/sda2 on /windows type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
> /dev/sda6 on /home type ext4 (rw,user_xattr,commit=0)
> 
> and sda5 as swap.
> 
> how to make it better ? (I know reiserfs is not a good idea, but at the moment 
> of building the system, it seamed good for little files/DB...)
> 
> I have read of mounting part of /var as tmpfs... ?
> 

/var as tmpfs is not a good idea. There are lots of persistent files in
there. If you want to be standard-conformant, you cannot even mount
/var/tmp as tmpfs because its content is also meant to survive reboots.
You can still do it though and mounting /tmp as tmpfs is completely okay.

Your choice of filesystem has little or no effect. You could proably
argue that JFS needs less CPU resources than for example ReiserFS but
that really doesn't matter.

What you really want is app-laptop/laptop-mode-tools.

Hope this helps,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: [gentoo-laptop] mounts options on a laptop
       [not found] ` <AANLkTi=pd-hxLEsMsR1DjKh7KFTOenoe1PTpEGJiBHF9@mail.gmail.com>
@ 2011-03-05 12:16   ` Stéphane Guedon
  2011-03-06  8:38     ` Peter Humphrey
  0 siblings, 1 reply; 4+ messages in thread
From: Stéphane Guedon @ 2011-03-05 12:16 UTC (permalink / raw
  To: gentoo-laptop, gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1418 bytes --]

On Saturday 05 March 2011 12:47:39 Kent Hagebrand wrote:
> Yes, I use tmpfs on /vat/tmp/portage to reduce the disk i/o on my laptop.
> Here is the line I use in the /etc/fstab:
> 
> none       /var/tmp/portage       tmpfs       nr_inodes=1M,size=2G     0 0
> 
> This will allow the directory  /var/tmp/portage to use at most 2GB of
> memory (I have 4GB).
> It is enough to compile most of the packages in portage.

I compile in /tmp which is tmpfs, and I was thinking of /var/run as tmpfs

On Saturday 05 March 2011 12:29:19 Florian Philipp wrote:
> /var as tmpfs is not a good idea. There are lots of persistent files in
> there. If you want to be standard-conformant, you cannot even mount
> /var/tmp as tmpfs because its content is also meant to survive reboots.
> You can still do it though and mounting /tmp as tmpfs is completely okay.
> 
> Your choice of filesystem has little or no effect. You could proably
> argue that JFS needs less CPU resources than for example ReiserFS but
> that really doesn't matter.
> 
> What you really want is app-laptop/laptop-mode-tools.
> 
> Hope this helps,
> Florian Philipp

with reiserfs, the disk is said to run all over the time !

-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Re: [gentoo-laptop] mounts options on a laptop
  2011-03-05 12:16   ` [gentoo-user] Re: [gentoo-laptop] " Stéphane Guedon
@ 2011-03-06  8:38     ` Peter Humphrey
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Humphrey @ 2011-03-06  8:38 UTC (permalink / raw
  To: gentoo-user

On Saturday 05 March 2011 12:16:23 Stéphane Guedon wrote:
> On Saturday 05 March 2011 12:47:39 Kent Hagebrand wrote:

(Odd: I haven't received this e-mail.)

> > Yes, I use tmpfs on /vat/tmp/portage to reduce the disk i/o on my
> > laptop. Here is the line I use in the /etc/fstab:
> > 
> > none       /var/tmp/portage       tmpfs       nr_inodes=1M,size=2G    
> > 0 0
> > 
> > This will allow the directory  /var/tmp/portage to use at most 2GB of
> > memory (I have 4GB).
> > It is enough to compile most of the packages in portage.

I've found that it isn't necessary to limit the tmpfs to half your RAM. I 
had it set to 6 GB on this box with 4 GB RAM. The kernel seems effective at 
managing this arrangement, swapping out to disk when needed - which, as you 
say, isn't often. When it does that I only find out by running top; it has no 
discernible effect on the desktop.

-- 
Rgds
Peter



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-06  8:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-05 10:48 [gentoo-user] mounts options on a laptop Stéphane Guedon
2011-03-05 11:29 ` Florian Philipp
     [not found] ` <AANLkTi=pd-hxLEsMsR1DjKh7KFTOenoe1PTpEGJiBHF9@mail.gmail.com>
2011-03-05 12:16   ` [gentoo-user] Re: [gentoo-laptop] " Stéphane Guedon
2011-03-06  8:38     ` Peter Humphrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox