All of lore.kernel.org
 help / color / mirror / Atom feed
From: Or Gerlitz <ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org>
To: David Dillow <dillowda-1Heg1YXhbW8@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFC 7/8] IB/srp: try to use larger FMR sizes to cover our mappings
Date: Thu, 20 Jan 2011 12:24:11 +0200	[thread overview]
Message-ID: <4D380D4B.6060404@voltaire.com> (raw)
In-Reply-To: <1295411242-26148-8-git-send-email-dillowda-1Heg1YXhbW8@public.gmane.org>

David Dillow wrote:
> Now that we can get larger SG lists, we can take advantage of HCAs that
> allow us to use larger FMR sizes. In many cases, we can use up to 512
> entries, so start there and work our way down.

I'm not clear what this patch really tries to do but before that, going
to low level details

> +	for (max_pages_per_fmr = SRP_FMR_SIZE;
> +			max_pages_per_fmr >= SRP_FMR_MIN_SIZE;
> +			max_pages_per_fmr /= 2, srp_dev->fmr_max_size /= 2) {
> +		fmr_param.pool_size	    = SRP_FMR_POOL_SIZE;
> +		fmr_param.dirty_watermark   = SRP_FMR_DIRTY_SIZE;
> +		fmr_param.cache		    = 1;
> +		fmr_param.max_pages_per_fmr = SRP_FMR_SIZE;
> +		fmr_param.page_shift	    = fmr_page_shift;

> +		srp_dev->fmr_pool = ib_create_fmr_pool(srp_dev->pd, &fmr_param);
> +		if (!IS_ERR(srp_dev->fmr_pool))
> +			break;
> +	}

aren't stepping on srp_dev->fmr_pool on each invocation of the for loop? didn't you
want page_shift and/or max_pages_per_fmr to change throughout the loop?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-01-20 10:24 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19  4:27 [RFC 0/8] Reliably generate large request from SRP David Dillow
     [not found] ` <1295411242-26148-1-git-send-email-dillowda-1Heg1YXhbW8@public.gmane.org>
2011-01-19  4:27   ` [RFC 1/8] IB/srp: always avoid non-zero offsets into an FMR David Dillow
2011-01-19  4:27   ` [RFC 2/8] IB/srp: move IB CM setup completion into its own function David Dillow
2011-01-19  4:27   ` [RFC 3/8] IB/srp: allow sg_tablesize to be set for each target David Dillow
2011-01-19  4:27   ` [RFC 4/8] IB/srp: rework mapping engine to use multiple FMR entries David Dillow
     [not found]     ` <1295411242-26148-5-git-send-email-dillowda-1Heg1YXhbW8@public.gmane.org>
2011-01-20 10:04       ` Or Gerlitz
     [not found]         ` <AANLkTim6H063ta0w2A+zo9QH0jY5qL5uu1OxN4iqMFEm-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-20 12:36           ` David Dillow
2011-01-19  4:27   ` [RFC 5/8] IB/srp: add safety valve for large SG tables without HW support David Dillow
2011-01-19  4:27   ` [RFC 6/8] IB/srp: add support for indirect tables that don't fit in SRP_CMD David Dillow
2011-01-19  4:27   ` [RFC 7/8] IB/srp: try to use larger FMR sizes to cover our mappings David Dillow
     [not found]     ` <1295411242-26148-8-git-send-email-dillowda-1Heg1YXhbW8@public.gmane.org>
2011-01-20 10:24       ` Or Gerlitz [this message]
     [not found]         ` <4D380D4B.6060404-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2011-01-20 12:40           ` David Dillow
2011-01-19  4:27   ` [RFC 8/8] IB/srp and direct IO: patches for testing large indirect tables David Dillow
     [not found]     ` <1295411242-26148-9-git-send-email-dillowda-1Heg1YXhbW8@public.gmane.org>
2011-01-20 10:07       ` Or Gerlitz
     [not found]         ` <4D38094B.9090101-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2011-01-20 12:33           ` David Dillow
2011-01-19  5:31   ` [RFC 0/8] Reliably generate large request from SRP Roland Dreier
     [not found]     ` <aday66hxxwe.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2011-01-19 12:01       ` David Dillow
2011-01-20  9:52       ` Or Gerlitz
     [not found]         ` <4D3805C4.6010203-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2011-01-20 12:54           ` David Dillow
     [not found]             ` <1295528044.22825.64.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2011-01-24 15:32               ` Or Gerlitz
     [not found]                 ` <4D3D9B74.8090607-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2011-01-24 16:14                   ` Bart Van Assche
     [not found]                     ` <AANLkTikapxELx5B6knAm6CQaeLsKHWd9EMQeexmFdF1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-24 18:00                       ` David Dillow
2011-01-24 17:53                   ` David Dillow
2011-01-20 17:50           ` Roland Dreier
2011-02-19  0:06       ` David Dillow
2011-02-19  0:07       ` David Dillow
     [not found]         ` <1298074037.15679.17.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2011-02-22  6:36           ` Or Gerlitz
     [not found]             ` <4D635974.10807-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-02-22 14:49               ` David Dillow
     [not found]                 ` <1298386190.18945.1.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2011-02-22 23:38                   ` Roland Dreier
     [not found]                     ` <AANLkTikxDu5b=p4fXHMm8W+tF3Lru4vB7xRZEF+HDpyu-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-23  1:23                       ` David Dillow
     [not found] ` <1300148888.2772.15.camel@lap75545.ornl.gov>
     [not found]   ` <AANLkTinC9QcE8E_O3M0+dapVGEAZq_tw-3cb3GN4qf-q@mail.gmail.com>
     [not found]     ` <AANLkTinC9QcE8E_O3M0+dapVGEAZq_tw-3cb3GN4qf-q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-15 23:51       ` David Dillow
     [not found]   ` <1300148888.2772.15.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2011-03-16  8:27     ` Or Gerlitz
     [not found]       ` <4D807472.2060000-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-03-16 15:07         ` David Dillow
2011-03-16 16:50         ` Roland Dreier
     [not found]           ` <AANLkTimY74Wmsfc3F35SBuR2YyDW=ao78B=9uGh4LZNJ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-16 21:41             ` David Dillow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D380D4B.6060404@voltaire.com \
    --to=ogerlitz-smomgflxvozwk0htik3j/w@public.gmane.org \
    --cc=dillowda-1Heg1YXhbW8@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.