Re: Can /var be on a separate partition?

2013-05-10 Thread Sven Gaerner
On Thu, May 09, 2013 at 10:26:58PM -0400, Pierre Abbat wrote:
 On Thursday, May 09, 2013 16:06:09 Sven Gaerner wrote:
  AFAIR there was a thread on the mailing list with some recommendations how
  to configure the PFS when it is placed on an SSD. Reblock and rebalance
  should be run less frequent than it is configured by default.
 
 I thought there was such a thread, but I don't find it. How often should they 
 be run?

The thread is available here:
  http://leaf.dragonflybsd.org/mailarchive/users/2011-05/msg00134.html

And Matt's suggestions:
  http://leaf.dragonflybsd.org/mailarchive/users/2011-05/msg00043.html

Here are the suggestions regarding the PFS configuration quoted from the second
mail.

If you are going to run HAMMER on the SSD then you also have to
manage the reblocking operation(s) on the PFSs.  I would completely
disable the 'recopy' function by commenting it out and I would adjust
the reblocking parameters to spend 1 minute every 5 days instead of
5 minutes every 1 day.

Everything else can be left as-is.  You can also leave history enabled.
nohistory will actually generate more write activity.  Though you do have
to be careful about the retention time due to the limited amount of space
available on the SSD, so you might want to adjust the snapshot interval
down from 60d to 10d or something like that.  History is one of HAMMER's
most important features, it is best to leave it on for all primary
information storage.  I usually turn it off only for things like
/usr/obj.

Most of these parameters are controlled via 'hammer viconfig pfs'.
You want to adjust the config for each mounted PFS and for '/'.


Sven



Re: Can /var be on a separate partition?

2013-05-09 Thread Sven Gaerner
On Thu, May 09, 2013 at 01:59:09AM -0400, Pierre Abbat wrote:
 I'm setting up the box that has an SSD and an HDD. Right now everything 
 that's 
 mounted is on the SSD. I made three partitions on the HDD: a backup boot 
 partition, a 75 GB plaintext Hammer volume, and the rest (449 GB) for an 
 encrypted Hammer volume. As this is going to be my router, it must come up 
 even if I'm not here to type in the password, so all filesystems on the 
 encrypted volume will be mounted manually. I'm thinking of putting /var on 
 the 
 hard disk, since it gets continuous traffic in /var/log. But it also contains 
 /var/hammer. Can /var/hammer be on a different partition than the root 
 filesystem?
 
 Pierre

There should be no problem in putting /var on the harddisk. I also had a setup
some time ago where /var and /tmp were located on a harddisk while the other
PFS like / and /usr were located on an SSD.

AFAIR there was a thread on the mailing list with some recommendations how to
configure the PFS when it is placed on an SSD. Reblock and rebalance should be
run less frequent than it is configured by default.

Sven



Re: Can /var be on a separate partition?

2013-05-09 Thread Pierre Abbat
On Thursday, May 09, 2013 16:06:09 Sven Gaerner wrote:
 AFAIR there was a thread on the mailing list with some recommendations how
 to configure the PFS when it is placed on an SSD. Reblock and rebalance
 should be run less frequent than it is configured by default.

I thought there was such a thread, but I don't find it. How often should they 
be run?

Pierre
-- 
Don't buy a French car in Holland. It may be a citroen.