Re: [PATCH 2/7] locking/rwsem: more aggressive use of optimistic spinning

From: Dave Chinner
Date: Sun Aug 17 2014 - 19:42:24 EST


On Fri, Aug 15, 2014 at 01:58:09PM -0400, Waiman Long wrote:
> On 08/14/2014 11:34 PM, Dave Chinner wrote:
> >
> ><create sparse vm image file of 500TB on ssd with XFS on it>
> >xfs_io -f -c "truncate 500t" -c "extsize 1m" /path/to/vm/image/file
....
>
> Thank for the testing recipe. I am afraid that I can't find a 500TB
> SSD for testing purpose.

Which bit of "sparse vm image file" didn't you understand? I'm
using a 400GB of SSD for this testing....

$ df -h /mnt/fast-ssd
Filesystem Size Used Avail Use% Mounted on
/dev/sdf 400G 275G 125G 69% /mnt/fast-ssd
$ ls -lh /mnt/fast-ssd/vm-500t.img
-rw------- 1 root root 500T Aug 15 13:21 /mnt/fast-ssd/vm-500t.img
$ du -sh /mnt/fast-ssd/vm-500t.img
275G /mnt/fast-ssd/vm-500t.img

That is on a Samsung 840 EVO SSD, which just about everyone should
be able to obtain. Do you *really* think I have 500TB of SSDs lying
around?

Cheers,

Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/