mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Thompson <daniel.thompson@linaro.org>
To: Jason Wessel <jason.wessel@windriver.com>
Cc: kgdb-bugreport@lists.sourceforge.net,
	Arnd Bergmann <arnd@arndb.de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-kernel@vger.kernel.org, patches@linaro.org
Subject: Re: [PATCH] misc: kgdbts: Display progress of asynchronous tests
Date: Thu, 14 Dec 2017 16:11:39 +0000	[thread overview]
Message-ID: <100d1ca3-fcc3-e77b-66c4-3cd4c657e31b@linaro.org> (raw)
In-Reply-To: <31570645-24de-3625-7a43-eb6d41214478@windriver.com>

On 14/12/17 15:20, Jason Wessel wrote:
> On 12/12/2017 06:10 AM, Daniel Thompson wrote:
>> kgdbts includes a couple of different "thrashing" style tests that
>> may have long runtimes (especially on simulated platforms) and which
>> run asynchronously. This is uncomfortable for interactive use and
>> makes setting timeouts tricky for automatic use.
> 
> 
> Do you know which test was specifically causing a problem?  It might not 
> be documented anywhere but I had usually started a user space process 
> which quickly created and deleted user space processes in order to make 
> the kgdbts tests complete quickly.

kgdbts=V1S10000 was bumping into 30 second timeouts.

IIRC this was simulating arm hardware on a fairly powerful x86 host 
machine. You can see the temporary workaround I used here:
https://github.com/daniel-thompson/kcontest/blob/master/tests/test_kgdb_selftest.py#L114

I decided this workaround was insufficient however since it would be 
rather brittle if I wanted to move to slower (more power efficient) 
hardware.


> I don't really see any issue with emitting a printk to indicate progress 
> as it is debug only and test specific.  As you know printk's change 
> timing.  If I had a dime for each time I had seen a problem go away when 
> I started adding printk's I'd have at least a 50 cents.  :-)

Agree about the interference.

I worked on the basis that these are thrashing style tests so providing 
there is a human perceivable gap between console messages (i.e. we are 
not "wasting" a CPU on an SMP system by having it in printk all the 
time) then perturbing the timing with printk() could even be beneficial.


Daniel.

      reply	other threads:[~2017-12-14 16:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-12 12:10 Daniel Thompson
2017-12-14 15:20 ` Jason Wessel
2017-12-14 16:11   ` Daniel Thompson [this message]

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=100d1ca3-fcc3-e77b-66c4-3cd4c657e31b@linaro.org \
    --to=daniel.thompson@linaro.org \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=jason.wessel@windriver.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@linaro.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

all inboxes | Powered by JetHome®