9front - general discussion about 9front
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] time
Date: Sun, 12 Aug 2018 23:07:46 +0200	[thread overview]
Message-ID: <543D9EFF84178350A65D710955EDB98B@felloff.net> (raw)
In-Reply-To: fdef557a0c0813c6f13b7806d16f5898@rebk.znet

>On Sun Aug 12 19:11:59 GMT 2018, cinap_lenrek@felloff.net wrote:
>> this sucks. burnzez talked to me explaining the lack of
>> resolution of kernel process time accounting but no context
>> has been given in this patch.
>
> This patch is unrelated to the accounting resolution issues.

no. it is very much related, because the times returned by
wait() are supposed to provide the same information you want,
just lacking resolution at the moment.

> Process-level accounting will never consider the time it takes to
> exec(), which ends up being important when the latency itself can
> unexpectedly (even sporadically) be an order of magnitude higher than
> the accounted execution time of the program.

of course it does. theres nothing special about exec. the accounting
starts when the *process* is created, not after exec(). also, it is
hard to know what you consider time spend execing. the exec itself
just reads the programs a.out header and creates the segments.
the pages get faulted in during the runtime of the program *after*
exec did its job.

>> as for the patch... no. i dont like it. its a kludgy work
>> arround, not addressing the problem. and i dont see why you
>> need segattach() at all.
>
> Yeah, segattach isn’t necessary, but seemed the most straightforward
> thing.  The child process also makes use of that ‘output’ array.
>	sprint(output, "/bin/%s", argv[1]);
>
> If RFMEM is used when rfork is called, then would it make sense to:
>	∙ define another array
>	∙ use smprint() instead of sprint
>	∙ set output[0] to NUL and proceed
>
> The last one makes the most sense to me, but that doesn’t mean it’s
> not retarded for some reason.

all of this doesnt matter. you'r adding your own nsec() calls because
the resolution of the wait times sucks. i think we should rather consider
improving the kernels process time accounting so that this code doesnt
need to exist.

--
cinap


             reply	other threads:[~2018-08-12 21:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-12 21:07 cinap_lenrek [this message]
2018-08-12 22:28 ` BurnZeZ
  -- strict thread matches above, loose matches on Subject: below --
2018-08-13  7:45 cinap_lenrek
2018-08-12 19:11 cinap_lenrek
2018-08-12 20:49 ` BurnZeZ

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=543D9EFF84178350A65D710955EDB98B@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9front@9front.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;
as well as URLs for NNTP newsgroup(s).