public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 03/11] tests/perf: update max buffer size for reading reports
Date: Fri, 4 Aug 2017 14:30:00 +0100	[thread overview]
Message-ID: <324015a7-dee1-ce86-ce6b-651e4664e33f@intel.com> (raw)
In-Reply-To: <150184687169.16312.17044420440749234455@mail.alporthouse.com>

On 04/08/17 12:41, Chris Wilson wrote:
> Quoting Lionel Landwerlin (2017-08-04 12:20:32)
>> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
>> ---
>>   tests/perf.c | 8 ++++----
>>   1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/tests/perf.c b/tests/perf.c
>> index 279ff0c6..65a1606d 100644
>> --- a/tests/perf.c
>> +++ b/tests/perf.c
>> @@ -1271,9 +1271,7 @@ read_2_oa_reports(int format_id,
>>          /* Note: we allocate a large buffer so that each read() iteration
>>           * should scrape *all* pending records.
>>           *
>> -        * The largest buffer the OA unit supports is 16MB and the smallest
>> -        * OA report format is 64bytes allowing up to 262144 reports to
>> -        * be buffered.
>> +        * The largest buffer the OA unit supports is 16MB.
> Out of curiosity, how is userspace meant to know? Or is it part of the
> platform specific details that we spread around kernel/userspace?
> -Chris
>
The current implementation always uses the largest buffer size (16Mb).
Some of our tests verify that correct behavior at the limits (like 
overflow event & correct recovery after disable/enable).

We could make that information available, but I'm not sure it's going to 
be that useful because context-switch reports will prevent estimation on 
how much the buffer gets filled over time. The behavior from userspace 
should be to use poll for monitoring when data is available and read it 
as often as it's made available.

-
Lionel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-08-04 13:30 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-04 11:20 [PATCH i-g-t 00/11] Improve robustness of the i915 perf tests Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 01/11] tests/perf: make stream_fd a global variable Lionel Landwerlin
2017-08-04 11:39   ` Chris Wilson
2017-08-22 13:44     ` Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 02/11] tests/perf: add per context filtering test for gen8+ Lionel Landwerlin
2017-08-08 14:21   ` Matthew Auld
2017-08-22 11:45     ` Lionel Landwerlin
2017-08-22 11:59       ` Chris Wilson
2017-08-22 13:11         ` Lionel Landwerlin
2017-08-22 13:28           ` Chris Wilson
2017-08-22 13:48             ` Lionel Landwerlin
2017-08-22 13:59               ` Chris Wilson
2017-08-04 11:20 ` [PATCH i-g-t 03/11] tests/perf: update max buffer size for reading reports Lionel Landwerlin
2017-08-04 11:41   ` Chris Wilson
2017-08-04 13:30     ` Lionel Landwerlin [this message]
2017-08-04 11:20 ` [PATCH i-g-t 04/11] tests/perf: rc6: try to guess when rc6 is disabled Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 05/11] tests/perf: rework oa-exponent test Lionel Landwerlin
2017-08-10 13:15   ` Matthew Auld
2017-08-22 14:56     ` Lionel Landwerlin
2017-08-22 16:13       ` Matthew Auld
2017-08-23  9:31         ` Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 06/11] tests/perf: make enable-disable more reliable Lionel Landwerlin
2017-08-04 11:44   ` Chris Wilson
2017-08-04 12:56     ` Lionel Landwerlin
2017-08-04 11:20 ` [PATCH i-g-t 07/11] tests/perf: make buffer-fill " Lionel Landwerlin
2017-08-10 16:10   ` Matthew Auld
2017-08-04 11:20 ` [PATCH i-g-t 08/11] tests/perf: load gt_boost_freq_mhz as max gt frequency Lionel Landwerlin
2017-08-10 13:21   ` Szwichtenberg, Radoslaw
2017-08-04 11:20 ` [PATCH i-g-t 09/11] tests/perf: remove unused frequency functions Lionel Landwerlin
2017-08-04 11:46   ` Chris Wilson
2017-08-04 11:20 ` [PATCH i-g-t 10/11] tests/perf: add Kabylake support Lionel Landwerlin
2017-08-10 16:24   ` Matthew Auld
2017-08-04 11:20 ` [PATCH i-g-t 11/11] tests/perf: add Geminilake support Lionel Landwerlin
2017-08-10 16:26   ` Matthew Auld
2017-08-04 11:59 ` [PATCH i-g-t 00/11] Improve robustness of the i915 perf tests Petri Latvala

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=324015a7-dee1-ce86-ce6b-651e4664e33f@intel.com \
    --to=lionel.g.landwerlin@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox