[Top] [All Lists]

Poor performance using discard

To: xfs@xxxxxxxxxxx
Subject: Poor performance using discard
From: Thomas Lynema <lyz27@xxxxxxxxx>
Date: Tue, 28 Feb 2012 17:56:18 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1330469784; bh=jaPkEWRqY38K6PeibdbSsqnvybucuuipMtxqZ4m4/vE=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Subject:From:To:Date:Content-Type:X-Mailer:Mime-Version; b=KdS6Tsach2QJZs7ufqhTpfwzuu0Krrl1qIvxzgBJ0Avk6IiydP7sZwQ30Q8Bl+eiNHIZ/aT9ULy0Rp0DzuaVTWbvT7kHyiKmOnl1SSZ1IMat7TMGqwfu6wtGucfPiiklahOOugW6qJaggo7wZsJN53wIDg3Q5GydaOvT6dB6yXo=
Please reply to my personal email as well as I am not subscribed to the

I have a PP120GS25SSDR it does support trim 

cat /sys/block/sdc/queue/discard_max_bytes 

The entire drive is one partition that is totally used by LVM.

I made a test vg and formatted it with mkfs.xfs.  Then mounted it with
discard and got the following result when deleting a kernel source:

/dev/mapper/ssdvg0-testLV on /media/temp type xfs

time rm -rf linux-3.2.6-gentoo/
real   5m7.139s
user   0m0.080s
sys   0m1.580s 

There where lockups where the system would pause for about a minute
during the process.

ext4 handles this scenerio fine:

/dev/mapper/ssdvg0-testLV on /media/temp type ext4

time rm -rf linux-3.2.6-gentoo/

real   0m0.943s
user   0m0.050s
sys   0m0.830s 

xfs mounted without discard seems to handle this fine:

/dev/mapper/ssdvg0-testLV on /media/temp type xfs

time rm -rf linux-3.2.6-gentoo/
real    0m1.634s
user    0m0.040s
sys     0m1.420s

uname -a
Linux core24 3.2.5-gentoo #11 SMP PREEMPT Sat Feb 11 15:46:22 EST 2012
x86_64 Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz GenuineIntel

Any suggestions?

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>