public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* all your slabs are belong to ram ?
@ 2015-10-06 14:24 krautus
  2015-10-06 14:50 ` Darrick J. Wong
  0 siblings, 1 reply; 4+ messages in thread
From: krautus @ 2015-10-06 14:24 UTC (permalink / raw)
  To: xfs

Dear List, nice to meet you :)

First post, straight to the point:
I'm wrestling from few weeks with a problem: roundcube (a webmail client) takes too long to open a dovecot (pop/imap server) mailbox with many emails (files).
So, when such user has more than 10K emails, it takes around 1 minute to open the mailbox.
Meanwhile, I/O %util goes to 100% and bottlenecks the whole system.

I've tried memcache(d) integration with roundcube but it doesn't eliminate the problem.

OS is Debian Wheezy 32-bit, 16GB of ECC RAM and storage is a simple hardware raid-1 with a couple of sata2 hard disks.
I've just used mkfs.xfs (with no tuning) and no options while mounting (in fstab).

It looks like the problem is the slow access to dentries and inodes, so I've set vfs_cache_pressure to 1,
forced buffering with few "find /var/mail > /dev/null"
and have it running like this from around 4 days.
Didn't help: slabs still gets flushed and opening folders is slow as before.

Current slabtop usage shows:
235352K used by xfs_inode
and
49708K used by dentry
while I would expect to have at least 1 GB of xfs_inode and at least 200MB of dentry.

So I'm asking you:
1. is there a way to force dentries and inodes to stay in ram ?
2. can I perhaps move dentries and inodes to a dedicated SSD ?

I'm open to all possibilities, perhaps increase RAM ?
Upgrade to Debian Jessie and 64 bit ?

Let me know if I can provide more info.


Thank you very much!
Mike
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: all your slabs are belong to ram ?
  2015-10-06 14:24 all your slabs are belong to ram ? krautus
@ 2015-10-06 14:50 ` Darrick J. Wong
  2015-10-06 16:16   ` Johannes Truschnigg
  0 siblings, 1 reply; 4+ messages in thread
From: Darrick J. Wong @ 2015-10-06 14:50 UTC (permalink / raw)
  To: krautus@kr916.org; +Cc: xfs

On Tue, Oct 06, 2015 at 04:24:43PM +0200, krautus@kr916.org wrote:
> Dear List, nice to meet you :)
> 
> First post, straight to the point:
> I'm wrestling from few weeks with a problem: roundcube (a webmail client) takes too long to open a dovecot (pop/imap server) mailbox with many emails (files).
> So, when such user has more than 10K emails, it takes around 1 minute to open the mailbox.
> Meanwhile, I/O %util goes to 100% and bottlenecks the whole system.
> 
> I've tried memcache(d) integration with roundcube but it doesn't eliminate the problem.
> 
> OS is Debian Wheezy 32-bit, 16GB of ECC RAM and storage is a simple hardware raid-1 with a couple of sata2 hard disks.
> I've just used mkfs.xfs (with no tuning) and no options while mounting (in fstab).
> 
> It looks like the problem is the slow access to dentries and inodes, so I've set vfs_cache_pressure to 1,
> forced buffering with few "find /var/mail > /dev/null"
> and have it running like this from around 4 days.
> Didn't help: slabs still gets flushed and opening folders is slow as before.
> 
> Current slabtop usage shows:
> 235352K used by xfs_inode
> and
> 49708K used by dentry
> while I would expect to have at least 1 GB of xfs_inode and at least 200MB of dentry.
> 
> So I'm asking you:
> 1. is there a way to force dentries and inodes to stay in ram ?
> 2. can I perhaps move dentries and inodes to a dedicated SSD ?
> 
> I'm open to all possibilities, perhaps increase RAM ?
> Upgrade to Debian Jessie and 64 bit ?

ISTR that kernel data such as slabs cannot live in highmem, which means that
dentries and slab cannot live in highmem.  A 32bit kernel sets up ~900M of low
memory and ~15G of highmem, which is probably why the kernel has to evict
things and why you see such problems.

A 64bit kernel sets up all the memory as lowmem, so the kernel can use all the
memory for stuff like that.  I'd give that a try first.

--D

> 
> Let me know if I can provide more info.
> 
> 
> Thank you very much!
> Mike
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: all your slabs are belong to ram ?
  2015-10-06 14:50 ` Darrick J. Wong
@ 2015-10-06 16:16   ` Johannes Truschnigg
  2015-10-06 18:34     ` krautus
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Truschnigg @ 2015-10-06 16:16 UTC (permalink / raw)
  To: xfs; +Cc: krautus@kr916.org

Am Di, 6.10.2015, 16:50 schrieb Darrick J. Wong:
> On Tue, Oct 06, 2015 at 04:24:43PM +0200, krautus@kr916.org wrote:
>> [...]
>> So I'm asking you:
>> 1. is there a way to force dentries and inodes to stay in ram ?
>> 2. can I perhaps move dentries and inodes to a dedicated SSD ?
>>
>> I'm open to all possibilities, perhaps increase RAM ?
>> Upgrade to Debian Jessie and 64 bit ?
>
> ISTR that kernel data such as slabs cannot live in highmem, which means
> that
> dentries and slab cannot live in highmem.  A 32bit kernel sets up ~900M of
> low
> memory and ~15G of highmem, which is probably why the kernel has to evict
> things and why you see such problems.
>
> A 64bit kernel sets up all the memory as lowmem, so the kernel can use all
> the
> memory for stuff like that.  I'd give that a try first.

A few years back, we solved pretty much that exact same problem by
switching the kernel to amd64, with all of userspace remaining i386. You
should definitely try this.

-- 
Mit freundlichen Grüßen
Johannes Truschnigg
Senior System Administrator
--
mailto:johannes.truschnigg@geizhals.at (in dringenden Fällen bitte an
info@geizhals.at)

Geizhals(R) - Preisvergleich Internet Services AG
Obere Donaustrasse 63/2
A-1020 Wien
Tel: +43 1 5811609/87
Fax: +43 1 5811609/55
http://geizhals.at => Preisvergleich für Österreich
http://geizhals.de => Preisvergleich für Deutschland
http://geizhals.eu => Preisvergleich EU-weit
Handelsgericht Wien | FN 197241K | Firmensitz Wien

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: all your slabs are belong to ram ?
  2015-10-06 16:16   ` Johannes Truschnigg
@ 2015-10-06 18:34     ` krautus
  0 siblings, 0 replies; 4+ messages in thread
From: krautus @ 2015-10-06 18:34 UTC (permalink / raw)
  To: xfs; +Cc: Johannes Truschnigg

Thank you very much, will do!
(and report back the results)

Regards and thanks for supporting,
Mike


On Tue, 6 Oct 2015 18:16:46 +0200
"Johannes Truschnigg" <johannes.truschnigg@geizhals.at> wrote:

> Am Di, 6.10.2015, 16:50 schrieb Darrick J. Wong:
> > On Tue, Oct 06, 2015 at 04:24:43PM +0200, krautus@kr916.org wrote:
> >> [...]
> >> So I'm asking you:
> >> 1. is there a way to force dentries and inodes to stay in ram ?
> >> 2. can I perhaps move dentries and inodes to a dedicated SSD ?
> >>
> >> I'm open to all possibilities, perhaps increase RAM ?
> >> Upgrade to Debian Jessie and 64 bit ?
> >
> > ISTR that kernel data such as slabs cannot live in highmem, which means
> > that
> > dentries and slab cannot live in highmem.  A 32bit kernel sets up ~900M of
> > low
> > memory and ~15G of highmem, which is probably why the kernel has to evict
> > things and why you see such problems.
> >
> > A 64bit kernel sets up all the memory as lowmem, so the kernel can use all
> > the
> > memory for stuff like that.  I'd give that a try first.
> 
> A few years back, we solved pretty much that exact same problem by
> switching the kernel to amd64, with all of userspace remaining i386. You
> should definitely try this.
> 
> -- 
> Mit freundlichen Grüßen
> Johannes Truschnigg
> Senior System Administrator
> --
> mailto:johannes.truschnigg@geizhals.at (in dringenden Fällen bitte an
> info@geizhals.at)
> 
> Geizhals(R) - Preisvergleich Internet Services AG
> Obere Donaustrasse 63/2
> A-1020 Wien
> Tel: +43 1 5811609/87
> Fax: +43 1 5811609/55
> http://geizhals.at => Preisvergleich für Österreich
> http://geizhals.de => Preisvergleich für Deutschland
> http://geizhals.eu => Preisvergleich EU-weit
> Handelsgericht Wien | FN 197241K | Firmensitz Wien
> 
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2015-10-06 18:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 14:24 all your slabs are belong to ram ? krautus
2015-10-06 14:50 ` Darrick J. Wong
2015-10-06 16:16   ` Johannes Truschnigg
2015-10-06 18:34     ` krautus

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