From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7558 invoked from network); 24 Mar 2023 14:44:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Mar 2023 14:44:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=8dxhtBY/mgl4ZNmy0hWXdJuLtrrv4zlDJ9YocD0L1RA=; b=ZzfUQU2kNaxtzkB3DWkfAVmxX9 RGuid1WWSFf+eg0XdqamXzWN+6TvoiP0bputpNjmPxO3DC86SnliDnEKCq2rhcut0fKCA8T+nHDjr +7YoXWiJH209i2crAUIPMxGzlR5671uUUzKu2g4IPub+rVajLHylIOt+LVCi6CN03kISgz4rokIID ivL+6wD+gYBTOCmQZ8SdmqyX9i+7sWRgtBkfG8cPIK0XTe9+2llUZj2MPY3wg6E6QDYpcNosJJjSu DZsPHMewzr8LsiD91beKeW3asOovdMuCbHzP4FinqHkokujcBZYVI13j1WsgpwWlKcDvUGaz4MQ46 d5b6gjXg==; Received: by zero.zsh.org with local id 1pfieG-0007Sn-TS; Fri, 24 Mar 2023 14:44:08 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pfidg-00079s-Ug; Fri, 24 Mar 2023 14:43:33 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1pfidf-0005lQ-Ot for zsh-workers@zsh.org; Fri, 24 Mar 2023 15:43:31 +0100 In-reply-to: From: Oliver Kiddle References: <20230203205244.bfq7a3zqcs64rtbe@chazelas.org> To: zsh-workers@zsh.org Subject: Re: Documentation of the TIMEFMT variable MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22158.1679669011.1@hydra> Date: Fri, 24 Mar 2023 15:43:31 +0100 Message-ID: <22159-1679669011.740622@zxQ6.l-QA.Tf8F> X-Seq: 51600 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: 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