zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: zsh-workers@zsh.org
Subject: Re: Documentation of the TIMEFMT variable
Date: Fri, 24 Mar 2023 15:43:31 +0100	[thread overview]
Message-ID: <22159-1679669011.740622@zxQ6.l-QA.Tf8F> (raw)
In-Reply-To: <AF1F7D8C-DC13-42BA-A184-D272C22D8F43@kba.biglobe.ne.jp>

Jun T wrote:
> If ru_maxrss is in KB in all OSes other than macOS, then we can just
> check $host_os in configure and set a macro in config.h indicating
> that ru_maxrss need be divided by 1024.

If there's no way to detect the correct units directly then falling back
on an OS check would work.

Stephane did do some work on refactoring limits code that never got
fully finished and merged a couple of years ago.

> But in manpage for Solaris:

> Is there anyone who can confirm that ru_maxrss is set to zero?
> If it is always zero, then we need not bother with page to KB conversion.

It does appear to always be zero. The ksh93 ulimit that acts as /bin/sh
on Solaris 11 prints:
  max memory size (Kibytes)      (-m)  not supported

There's no -m option at all for the ulimit on Solaris 10.

Oliver


  reply	other threads:[~2023-03-24 14:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 16:53 trillian
2023-02-02 17:53 ` Daniel Shahaf
2023-02-02 19:33 ` Bart Schaefer
2023-02-03 20:52   ` Stephane Chazelas
2023-02-05  8:36     ` Daniel Shahaf
2023-03-24 10:25     ` Jun T
2023-03-24 14:43       ` Oliver Kiddle [this message]
2023-03-27  0:55         ` Jun T

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=22159-1679669011.740622@zxQ6.l-QA.Tf8F \
    --to=opk@zsh.org \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).