From: gongfengguang Subject: Create one millon empty files with cephfs Date: Tue, 29 Dec 2015 18:11:05 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1696548318==" Return-path: Content-Language: zh-cn List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ceph-users-bounces-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org Sender: "ceph-users" To: ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org List-Id: ceph-devel.vger.kernel.org --===============1696548318== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0054_01D14264.4914D580" Content-Language: zh-cn ------=_NextPart_000_0054_01D14264.4914D580 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, We create one millon empty files through filebench, here is the test env: MDS: one MDS MON: one MON OSD: two OSD , each with one Intel P3700; data on OSD with 2x replica NetWork: all the nodes are connectted through 10 gigabit network We use more than one client to create files, to test the scalability of MDS. Here are the results: IOPS under one client: 850 IOPS under two client: 1150 IOPS under four client: 1180 As we can see,the IOPS almost maintains unchanged when the number of client increase from 2 to 4. Cephfs may have a low scalability under one MDS, and we think its the big lock in MDSDamon::ms_dispatch()::Mutex::locker(every request acquires this lock), who limits the scalability of MDS. We think this big lock could be removed through the following steps: 1. separate the process of ClientRequest with other requests, so we can parallel the process of ClientRequest 2. use some small granularity locks instead of big lock to ensure consistency Wondering this idea is reasonable ? thanks ------=_NextPart_000_0054_01D14264.4914D580 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

We = create one millon empty files through filebench, here is the test = env:

MDS: one  MDS  =

MON: one  MON

OSD: two = OSD , each with one Intel P3700; data on OSD with 2x = replica

NetWork: all the nodes are connectted through = 10 gigabit network

 

We use = more than one client to create files, to test the scalability of MDS. = Here are the results:

IOPS under one client: = 850

IOPS under two client: = 1150

IOPS under four client: = 1180

As we can see,the IOPS almost maintains = unchanged when the number of client increase from 2 to 4. =

Cephfs may have a low scalability under one = MDS, and we think its the big lock in = MDSDamon::ms_dispatch()::Mutex::locker(every request acquires this = lock), who limits the scalability of MDS.

 

We think = this big lock could be removed through the following = steps:

1. separate the process of ClientRequest with = other requests, so we can parallel the process of = ClientRequest

2. use some small granularity = locks instead of big lock to ensure consistency

 

Wondering this idea is reasonable = ?

 

thanks

 

------=_NextPart_000_0054_01D14264.4914D580-- --===============1696548318== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ceph-users mailing list ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com --===============1696548318==--