Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-20 Thread Martin Simmons
, "freebsd-fs" > > , "Hubbard Jordan" , "Xavier > > Hernandez" , "Gluster > > Devel" > > Sent: Tuesday, January 19, 2016 4:07:09 AM > > Subject: Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of > > C

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-19 Thread Rick Macklem
> > freebsd...@freebsd.org, xhernan...@datalab.es, j...@ixsystems.com > > Sent: Tuesday, January 19, 2016 3:35:07 PM > > Subject: Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of > > CPU usage > > > > >>>>> On Tue, 19 Jan 2016 01:01:19 -0500

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-19 Thread Rick Macklem
uot; , "Xavier > > Hernandez" , "Gluster > > Devel" > > Sent: Tuesday, January 19, 2016 4:07:09 AM > > Subject: Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of > > CPU usage > > > > Raghavendra Gowdappa wrote: >

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-19 Thread Rick Macklem
> > freebsd...@freebsd.org, xhernan...@datalab.es, j...@ixsystems.com > > Sent: Tuesday, January 19, 2016 3:35:07 PM > > Subject: Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of > > CPU usage > > > > >>>>> On Tue, 19 Jan 2016 01:01:19 -0500

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-19 Thread Raghavendra Gowdappa
ent: Tuesday, January 19, 2016 3:35:07 PM > Subject: Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU > usage > > >>>>> On Tue, 19 Jan 2016 01:01:19 -0500 (EST), Raghavendra Gowdappa said: > > > > - Original Message - > &

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-18 Thread Raghavendra Gowdappa
> > > To: "Jeff Darcy" > > > Cc: "Raghavendra G" , "freebsd-fs" > > > , "Hubbard Jordan" > > > , "Xavier Hernandez" , "Gluster > > > Devel" > > > Sent: Saturday, January 9, 2016 7:29:5

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-18 Thread Rick Macklem
ot; , "Gluster > > Devel" > > Sent: Saturday, January 9, 2016 7:29:59 AM > > Subject: Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of > > CPU usage > > > > Jeff Darcy wrote: > > > > > I don't know anything about glus

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Raghavendra Gowdappa
- Original Message - > From: "Rick Macklem" > To: "Jeff Darcy" > Cc: "Raghavendra G" , "freebsd-fs" > , "Hubbard Jordan" > , "Xavier Hernandez" , "Gluster > Devel" > Sent: Saturday, January 9,

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Rick Macklem
Oops, I realized the last patch did a write(2) while holding a pthread_mutex. I've never used pthread_mutexes, but I suspect this isn't allowed. The attached updated patch delays the write() until after the pthread_mutex_unlock(). Sorry about the confusion, rick - Original Message - > > >

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Rick Macklem
Jeff Darcy wrote: > > > I don't know anything about gluster's poll implementation so I may > > > be totally wrong, but would it be possible to use an eventfd (or a > > > pipe if eventfd is not supported) to signal the need to add more > > > file descriptors to the poll call ? > > > > > > > > > The

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Kaleb S. KEITHLEY
On 01/08/2016 08:58 AM, Kaleb S. KEITHLEY wrote: > On 12/30/2015 01:22 PM, Hubbard Jordan wrote: > >> I also have a broader question to go with the specific one: We >> (at iXsystems) were attempting to engage with some of the Red Hat >> folks back when the FreeBSD port was first done, in the ho

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Kaleb S. KEITHLEY
On 12/30/2015 01:22 PM, Hubbard Jordan wrote: > I also have a broader question to go with the specific one: We > (at iXsystems) were attempting to engage with some of the Red Hat > folks back when the FreeBSD port was first done, in the hope of > getting it more “officially supported” for Free

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Jeff Darcy
> > I don't know anything about gluster's poll implementation so I may > > be totally wrong, but would it be possible to use an eventfd (or a > > pipe if eventfd is not supported) to signal the need to add more > > file descriptors to the poll call ? > > > > > > The poll call should listen on this

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Raghavendra G
On Fri, Jan 8, 2016 at 1:32 PM, Xavier Hernandez wrote: > > On 08/01/16 05:42, Raghavendra G wrote: > >> Sorry for the delayed reply. Had missed out this mail. Please find my >> comments inlined. >> >> On Thu, Dec 31, 2015 at 4:56 AM, Rick Macklem > > wrote: >> >>

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-08 Thread Xavier Hernandez
On 08/01/16 05:42, Raghavendra G wrote: Sorry for the delayed reply. Had missed out this mail. Please find my comments inlined. On Thu, Dec 31, 2015 at 4:56 AM, Rick Macklem mailto:rmack...@uoguelph.ca>> wrote: Jordan Hubbard wrote: > > > On Dec 30, 2015, at 2:31 AM, Niels de Vos m

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-07 Thread Raghavendra G
Sorry for the delayed reply. Had missed out this mail. Please find my comments inlined. On Thu, Dec 31, 2015 at 4:56 AM, Rick Macklem wrote: > Jordan Hubbard wrote: > > > > > On Dec 30, 2015, at 2:31 AM, Niels de Vos wrote: > > > > > >> I'm guessing that Linux uses the event-epoll stuff instead

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-07 Thread Niels de Vos
On Wed, Dec 30, 2015 at 09:00:32AM -0500, Rick Macklem wrote: > Niels de Vos wrote: > > On Tue, Dec 29, 2015 at 08:12:40PM -0500, Rick Macklem wrote: > > > Hi, > > > > > > I'm been playing with the FreeBSD port of GlusterFS and it seems > > > to be working ok. I do notice that the daemons use a lo

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2016-01-04 Thread Hubbard Jordan
> On Dec 30, 2015, at 2:31 AM, Niels de Vos wrote: > >> I'm guessing that Linux uses the event-epoll stuff instead of event-poll, >> so it wouldn't exhibit this. Is that correct? > > Well, both. most (if not all) Linux builds will use event-poll. But, > that calls epoll_wait() with a timeout of

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2015-12-30 Thread Rick Macklem
Jordan Hubbard wrote: > > > On Dec 30, 2015, at 2:31 AM, Niels de Vos wrote: > > > >> I'm guessing that Linux uses the event-epoll stuff instead of event-poll, > >> so it wouldn't exhibit this. Is that correct? > > > > Well, both. most (if not all) Linux builds will use event-poll. But, > > tha

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2015-12-30 Thread Rick Macklem
Niels de Vos wrote: > On Tue, Dec 29, 2015 at 08:12:40PM -0500, Rick Macklem wrote: > > Hi, > > > > I'm been playing with the FreeBSD port of GlusterFS and it seems > > to be working ok. I do notice that the daemons use a lot of CPU, > > even when there is nothing to do (no volumes started, etc).

Re: [Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2015-12-30 Thread Niels de Vos
On Tue, Dec 29, 2015 at 08:12:40PM -0500, Rick Macklem wrote: > Hi, > > I'm been playing with the FreeBSD port of GlusterFS and it seems > to be working ok. I do notice that the daemons use a lot of CPU, > even when there is nothing to do (no volumes started, etc). > When I ktrace the daemon, I se

[Gluster-devel] FreeBSD port of GlusterFS racks up a lot of CPU usage

2015-12-29 Thread Rick Macklem
Hi, I'm been playing with the FreeBSD port of GlusterFS and it seems to be working ok. I do notice that the daemons use a lot of CPU, even when there is nothing to do (no volumes started, etc). When I ktrace the daemon, I see a small number of nanosleep() and select() syscalls and lots of poll() s