Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2013 17:55:35 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256995 - head/sys/cam/ctl
Message-ID:  <201310231755.r9NHtZVG079192@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Oct 23 17:55:35 2013
New Revision: 256995
URL: http://svnweb.freebsd.org/changeset/base/256995

Log:
  Remove 128KB bzero() call done for every block I/O data buffer.
  
  On my tests this improves performance of the new iSCSI target backed by
  GEOM STRIPE of SSDs from 75K to 110K IOPS.
  
  Reviewed by:	ken

Modified:
  head/sys/cam/ctl/ctl_backend_block.c

Modified: head/sys/cam/ctl/ctl_backend_block.c
==============================================================================
--- head/sys/cam/ctl/ctl_backend_block.c	Wed Oct 23 17:24:21 2013	(r256994)
+++ head/sys/cam/ctl/ctl_backend_block.c	Wed Oct 23 17:55:35 2013	(r256995)
@@ -1605,18 +1605,6 @@ ctl_be_block_open(struct ctl_be_block_so
 }
 
 static int
-ctl_be_block_mem_ctor(void *mem, int size, void *arg, int flags)
-{
-	return (0);
-}
-
-static void
-ctl_be_block_mem_dtor(void *mem, int size, void *arg)
-{
-	bzero(mem, size);
-}
-
-static int
 ctl_be_block_create(struct ctl_be_block_softc *softc, struct ctl_lun_req *req)
 {
 	struct ctl_be_block_lun *be_lun;
@@ -1644,8 +1632,7 @@ ctl_be_block_create(struct ctl_be_block_
 	mtx_init(&be_lun->lock, be_lun->lunname, NULL, MTX_DEF);
 
 	be_lun->lun_zone = uma_zcreate(be_lun->lunname, MAXPHYS, 
-	    ctl_be_block_mem_ctor, ctl_be_block_mem_dtor, NULL, NULL,
-	    /*align*/ 0, /*flags*/0);
+	    NULL, NULL, NULL, NULL, /*align*/ 0, /*flags*/0);
 
 	if (be_lun->lun_zone == NULL) {
 		snprintf(req->error_str, sizeof(req->error_str),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310231755.r9NHtZVG079192>