linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Srinivas Eeda <srinivas.eeda@oracle.com>
To: linux-fsdevel@vger.kernel.org, fuse-devel@lists.sourceforge.net
Cc: mszeredi@suse.cz, srinivas.eeda@oracle.com
Subject: FUSE: fixes to improve scalability on NUMA systems
Date: Mon, 29 Apr 2013 23:17:30 -0700	[thread overview]
Message-ID: <1367302653-10544-1-git-send-email-srinivas.eeda@oracle.com> (raw)

Hi Miklos and all,

I would like to submit following fixes for review which enhance FUSE
scalability on NUMA systems. The changes add new mount option 'numa' and
involve kernel and user library changes. I am currently forwarding kernel fixes
only and will forward library changes once the kernel fixes seem ok to you :)

In our internal tests, we noticed that FUSE was not scaling well when multiple
users access same mount point. The contention is on fc->lock spinlock, but the
real problem is not the spinlock itself but because of the latency involved
in accessing single spinlock from multiple NUMA nodes. 

This fix groups various fields in fuse_conn and creates a set for each NUMA
node to reduce contention. A spinlock is created for each NUMA node which will
synchronize access to node local set. All processes will now access nodes local
spinlock thus reducing latency. To get this behavior users(fuse library) or
the file system implementers should pass 'numa' mount option. If 'numa' option
is not specified during mount, FUSE will create single set of the grouped
fields and behavior is similar to current. File systems that support NUMA
option should listen on /dev/fuse from all NUMA nodes to serve
incoming/outgoing requests. If File systems are using fuse library then the
library will do that for them.

Please let me know any suggestions you may have to fix this better. I am open
to any ideas that improve the performance :)

TESTS:

We did some simple dd tests to read/write to FUSE based fs and also ran some
database workloads. All tests show that these fixes improve performance.
 
1) Writes to single mount
 dd process   throughput(without numa)  throughput(with numa)
    4                 1254 M                  1200 M
    8                  764 M                  1931 M
    16                 430 M                  1931 M
    32                 454 M                  2641 M
    64                 448 M                  2891 M
    128                435 M                  7414 M

2) Reading from single mount
# dd process   throughput(without numa)  throughput(with numa)
    4                 550 M                    581 M
    8                1013 M                   1071 M
    16                430 M                   1767 M
    32                314 M                   2114 M
    64                300 M                   3872 M
    128               297 M                   4563 M

3) Other workloads

   a) Database load tables application which used to take 47 min
      now finishes in 8 minutes.

   b) Data generation application which takes 2hr 50min now
      finishes in 1hr 21min.

Thanks,
--Srini



             reply	other threads:[~2013-04-30  6:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30  6:17 Srinivas Eeda [this message]
2013-04-30  6:17 ` [PATCH 1/3] fuse: add numa mount option Srinivas Eeda
2013-04-30  6:17 ` [PATCH 2/3] fuse: add fuse numa node struct Srinivas Eeda
2013-04-30  6:17 ` [PATCH 3/3] fuse: split fuse queues to help numa systems Srinivas Eeda
2013-04-30 16:29 ` [fuse-devel] FUSE: fixes to improve scalability on NUMA systems Miklos Szeredi
2013-04-30 18:28   ` Srinivas Eeda
2013-05-01  9:53     ` Miklos Szeredi
     [not found]       ` <CAJfpegvi=Npv1Da2gqDb50xWzO4GHusbrwZMn5tUp8hQ89AJjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-08  9:11         ` Anand Avati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1367302653-10544-1-git-send-email-srinivas.eeda@oracle.com \
    --to=srinivas.eeda@oracle.com \
    --cc=fuse-devel@lists.sourceforge.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mszeredi@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).