Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread Roger Pau Monné
On Mon, Aug 15, 2016 at 05:54:52PM +0200, rai...@ultra-secure.de wrote: > Hi, > > I've got a problem. > Hello, > > For a customer, I run a VM in Xen that should perform a certain task in PHP > (written using the ZendFrameWork). > > That task takes about 18-20 seconds on FreeBSD 10.3 amd64, M

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Am 2016-08-16 10:54, schrieb Roger Pau Monné: On Mon, Aug 15, 2016 at 05:54:52PM +0200, rai...@ultra-secure.de wrote: Hi, I've got a problem. Hello, For a customer, I run a VM in Xen that should perform a certain task in PHP (written using the ZendFrameWork). That task takes about 18-2

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Just a little update. Using FreeBSD 11.0-RC1 (amd64) on a 2vCPU 8GB VM, I can complete the task in 12s. However, using PHP 5.6 and MySQL 5.6 from FreeBSD's pkg-repo. I don't have packages for FreeBSD 11, yet, and the default versions in the official packages are different than mine - my poudri

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread Roger Pau Monné
On Tue, Aug 16, 2016 at 11:29:43AM +0200, rai...@ultra-secure.de wrote: > Am 2016-08-16 10:54, schrieb Roger Pau Monné: > > On Mon, Aug 15, 2016 at 05:54:52PM +0200, rai...@ultra-secure.de wrote: > > > Hi, > > > > > > I've got a problem. > > > > > > > Hello, > > > > > > > > For a customer, I r

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Am 2016-08-16 12:06, schrieb Roger Pau Monné: On Tue, Aug 16, 2016 at 11:29:43AM +0200, rai...@ultra-secure.de wrote: Am 2016-08-16 10:54, schrieb Roger Pau Monné: > On Mon, Aug 15, 2016 at 05:54:52PM +0200, rai...@ultra-secure.de wrote: > > Hi, > > > > I've got a problem. > > > > Hello, > > > >

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread Roger Pau Monné
On Tue, Aug 16, 2016 at 12:13:55PM +0200, rai...@ultra-secure.de wrote: > Am 2016-08-16 12:06, schrieb Roger Pau Monné: > > On Tue, Aug 16, 2016 at 11:29:43AM +0200, rai...@ultra-secure.de wrote: > > > Am 2016-08-16 10:54, schrieb Roger Pau Monné: > > > > On Mon, Aug 15, 2016 at 05:54:52PM +0200, r

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Am 2016-08-16 13:08, schrieb Roger Pau Monné: And FreeBSD on bare metal is equally fast as Linux then? (ie: the slowdown is only noticeable when running FreeBSD on Xen) Yes. I should clarify a bit more. The task involves 12000 (simple) MySQL-Queries, where the script basically selects the

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread Roger Pau Monné
On Tue, Aug 16, 2016 at 03:14:05PM +0200, rai...@ultra-secure.de wrote: > Am 2016-08-16 13:08, schrieb Roger Pau Monné: > > > And FreeBSD on bare metal is equally fast as Linux then? (ie: the > > slowdown > > is only noticeable when running FreeBSD on Xen) > > > Yes. > > I should clarify a bit

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Am 2016-08-16 15:29, schrieb Roger Pau Monné: Could you try to run something like UnixBench (or any other general benchmarking tool) inside of the Linux VM, the FreeBSD VM and a bare metal FreeBSD install? This way we might be able to spot what's causing this slowdown. I'll have to attach n

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread Borja Marcos
> On 16 Aug 2016, at 15:29, Roger Pau Monné wrote: > >> Could this really be an UFS vs. ext4 thing? > > Hm, maybe. There are a lot of moving pieces here that make it quite hard to > diagnose the issue properly. > > Could you try to run something like UnixBench (or any other general > benchma

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Am 2016-08-16 15:38, schrieb Borja Marcos: On 16 Aug 2016, at 15:29, Roger Pau Monné wrote: Could this really be an UFS vs. ext4 thing? Hm, maybe. There are a lot of moving pieces here that make it quite hard to diagnose the issue properly. Could you try to run something like UnixBench (

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread Borja Marcos
> On 16 Aug 2016, at 15:41, rai...@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

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Am 2016-08-16 15:48, schrieb Borja Marcos: On 16 Aug 2016, at 15:41, rai...@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? So

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread Roger Pau Monné
On Tue, Aug 16, 2016 at 04:05:30PM +0200, rai...@ultra-secure.de wrote: > Am 2016-08-16 15:48, schrieb Borja Marcos: > > > On 16 Aug 2016, at 15:41, rai...@ultra-secure.de wrote: > > > > > > Am 2016-08-16 15:38, schrieb Borja Marcos: > > > > > > > > Maybe this is too obvious, my apologies in that

Re: Is it me or is FreeBSD slower on Xen than Linux?

2016-08-16 Thread rainer
Am 2016-08-16 16:18, schrieb Roger Pau Monné: 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 perf