Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2016 16:18:26 +0200
From:      Roger Pau =?iso-8859-1?Q?Monn=E9?= <roger.pau@citrix.com>
To:        <rainer@ultra-secure.de>
Cc:        Borja Marcos <borjam@sarenet.es>, <freebsd-xen@freebsd.org>
Subject:   Re: Is it me or is FreeBSD slower on Xen than Linux?
Message-ID:  <20160816141826.56mxsgx6e7rynxqg@mac>
In-Reply-To: <c6bdef83f2370173c067820565bf933e@ultra-secure.de>
References:  <2a0a5ae2821551935de329b8665834be@ultra-secure.de> <20160816100605.la63x2ju5bmtdqhl@mac> <e62d4e94ec36fa859783ddc0aeb1aa28@ultra-secure.de> <20160816110759.6xlvxikw3tziahfd@mac> <c3a3a7da26cd1a6a114c03e823926272@ultra-secure.de> <20160816132938.d2i4u2y3scpzi2et@mac> <00D22384-BAA7-42E4-A486-4BE07562D011@sarenet.es> <8521aebaa093bcefe5956a71fd879140@ultra-secure.de> <872C5626-F58D-4F84-92AC-88B7352D1DDF@sarenet.es> <c6bdef83f2370173c067820565bf933e@ultra-secure.de>

index | next in thread | previous in thread | raw e-mail

On Tue, Aug 16, 2016 at 04:05:30PM +0200, rainer@ultra-secure.de wrote:
> Am 2016-08-16 15:48, schrieb Borja Marcos:
> > > On 16 Aug 2016, at 15:41, rainer@ultra-secure.de wrote:
> > > 
> > > Am 2016-08-16 15:38, schrieb Borja Marcos:
> > > > 
> > > > Maybe this is too obvious, my apologies in that case. But, how have
> > > > the filesystems been
> > > > created and mounted? Asynchronous? Synchronous? Journalling?
> > > > Softupdates in the case of
> > > > FreeBSD UFS? It can make quite a difference.
> > > 
> > > 
> > > FreeBSD
> > > 
> > > /dev/ada2p1 on /home/db (ufs, local, soft-updates)
> > > 
> > > 
> > > 
> > > Linux:
> > > /dev/mapper/system-lvm--home /home           ext4    defaults
> > > 0       2
> > > 
> > > 
> > > What does "defaults" mean, BTW?
> > 
> > That’s the mother of the lamb, we use to say in Spain ;)
> > 
> > I guess it depends on the particular distribution, not just on being
> > ext4. Is there a tool similar to
> > dumpfs on Linux?
> 
> 
> Apparently, it's in
> cat /proc/mounts
> 
> /dev/mapper/system-lvm--tmp /tmp ext4 rw,relatime,data=ordered 0 0
> /dev/mapper/system-lvm--var /var ext4 rw,relatime,data=ordered 0 0
> /dev/mapper/system-lvm--home /home ext4 rw,relatime,data=ordered 0 0
> /dev/mapper/system-lvm--varlog /var/log ext4 rw,relatime,data=ordered 0 0
> 
> 
> 
> 
> > You can also experiment with the FreeBSD options, maybe it will be a
> > quicker route. Try to mount as asynchronous.
> > In case it  makes a big difference, you got it.
> 
> But I don't really want to mount it asyncronous.
> Would it help to have journaling?
> 
> Or is soft-updates already the "optimum"?

I'm not saying it's not possible, but are you sure this slowdown is caused 
by the disk? It's certainly a possibility, but I would like to make sure 
it's caused by that before jumping into conclusions.

Can you load the full database in RAM and perform the same test. TBH, I 
don't use MariaDB, so I'm not sure what's the best way to achieve this, but 
a quick search on google shows there are multiple ways. In any case, make 
sure with iostat that the database is not read from the disk.

Roger.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160816141826.56mxsgx6e7rynxqg>