From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932184AbaHKURy (ORCPT ); Mon, 11 Aug 2014 16:17:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28172 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429AbaHKURx (ORCPT ); Mon, 11 Aug 2014 16:17:53 -0400 Date: Mon, 11 Aug 2014 16:17:45 -0400 From: Alexander Gordeev To: Nicholas Bellinger Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, qla2xxx-upstream@qlogic.com, Kent Overstreet , "Michael S. Tsirkin" Subject: Re: [PATCH RFC 0/2] percpu_tags: Prototype implementation Message-ID: <20140811201744.GD8397@lenovo-rd230-04.lab.bos.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 18, 2014 at 12:20:56PM +0200, Alexander Gordeev wrote: > The performance test is not decent, though. I used "fio" random > read against a "null_blk" device sitting on top of "percpu_tags", > which is not exactly how "percpu_ida" is used. This is another > reason I am posting - an advice on how to properly test is very > appreciated. Hi Nicholas et al, I expect the best possible performance test for percpu_ida/percpu_tags would be to stress drivers/vhost/scsi.c vhost_scsi_get_tag() function. I tried to make such test by attaching ramdisk to a virtual machine (similar to https://lkml.org/lkml/2012/8/10/347) but ultimately failed to configure the necessary environment - the stock qemu does not have -vhost-scsi parameter. Could you please advice how to make this configuration exposed to guests? o- / ..................................................................... [...] o- backstores .......................................................... [...] | o- block .............................................. [Storage Objects: 0] | o- fileio ............................................. [Storage Objects: 0] | o- pscsi .............................................. [Storage Objects: 0] | o- ramdisk ............................................ [Storage Objects: 1] | o- rda .............................................. [(1.0GiB) activated] o- iscsi ........................................................ [Targets: 0] o- loopback ..................................................... [Targets: 0] o- vhost ........................................................ [Targets: 1] o- naa.5001405b171ee405 .......................................... [TPGs: 1] o- tpg1 .............................. [naa.5001405983a5b1a4, no-gen-acls] o- acls ...................................................... [ACLs: 0] o- luns ...................................................... [LUNs: 1] o- lun0 ................................................ [ramdisk/rda] Thanks!