• Re: =?UTF-8?B?8J+Ps++4j+KAjfCfjIhBcHBsZQ==?= requires too much money an

    From vallor@21:1/5 to All on Sun Apr 6 03:35:26 2025
    XPost: misc.phone.mobile.iphone

    On Sun, 06 Apr 2025 03:18:35 +0000, πŸŒˆπŸ’πŸŒ»πŸŒΊπŸŒΉπŸŒ»πŸ’πŸŒ·πŸŒΊπŸŒˆJenπŸŒˆπŸ’πŸŒ»πŸŒΊπŸŒΉπŸŒ»πŸ’
    🌷🌺🌈
    Dershmendenderer πŸ’πŸŒ»πŸŒΊπŸŒΉπŸŒ»πŸ’πŸŒ·πŸŒΊπŸΆη¬›πŸŒˆπŸ’πŸŒ»πŸŒΊπŸŒΉπŸŒ»πŸ’πŸŒ·πŸŒΊπŸŒˆ
    <[email protected]> wrote in
    <=3D?U=3D?UTF-8?Q?T?=3DF-8?Q?=3DF0=3D9F=3D8C=3DBA? =[email protected]=3D?U=3D?UTF-8?Q?T?=3DF-8?Q? =3DF0=3D9F=3D8C=3DBA?=3D>:

    On 6 Apr 2025 01:26:57 GMT, LO AND BEHOLD; vallor <[email protected]> determined that the following was of great importance to vallor <[email protected]> and subsequently decided to freely share it with us
    in <[email protected]>:

    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= On Sat, 05 Apr 2025 16:16:28 -0400,
    Joel <[email protected]> wrote in =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= <[email protected]>: =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= Chris Ahlstrom <[email protected]> wrote:
    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= Alan wrote this post while blinking in
    Morse code:
    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= [...]
    Linux isn't smart enough to count RAM in base-2). =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= :-D That's not "Linux", that's just one
    GUI tool to measure RAM. For =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    example, from "man free": free [options] OPTIONS -b, =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= --bytes Display the amount
    of memory in bytes. -k, =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= --kibi
    Display the amount of memory in kibibytes. This is =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= the default. -m,
    --mebi Display the =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= amount
    of memory in mebibytes. -g, --gibi Display =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= the amount of memory in gibibytes.
    --tebi Display the amount of =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= memory
    in tebibytes. --pebi Display the amount of memory in =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= pebibytes. --kilo Display the
    amount of memory in kilobytes. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    Implies --si. --mega Display the amount of memory in megabytes. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= Implies --si. --giga Display the amount of memory in gigabytes. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    Implies --si. --tera Display the amount of memory in terabytes. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= Implies --si. --peta Display the amount of memory in petabytes. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    Implies --si. -h, --human Show all output fields =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= automatically scaled to shortest
    three digit unit and =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    display the units of print out. Following units are used. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= B = bytes Ki = kibibyte
    Mi = mebibyte Gi = gibibyte Ti = =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    tebibyte Pi = pebibyte The "top" command (to show memory =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= usage by process) has similar options. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= But
    Alan can just let Apple think for him, no need to explain, zzz. =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=
    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= Mac:~ vallor$ uname -a Darwin Mac
    24.3.0 Darwin Kernel Version 24.3.0:
    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6020
    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= arm64 Mac:~ vallor$ free -bash: free: command not found =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?= Huhu, okay. How do you do that on a
    Mac?
    =?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=

    is there /proc/meminfo ?

    Alas, Macs don't have /proc.

    Would be nice if they did, though.

    --
    -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
    OS: Linux 6.14.0 Release: Mint 22.1 Mem: 258G
    "Remember that you are unique. Just like everyone else."

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From vallor@21:1/5 to vallor on Sun Apr 6 04:31:07 2025
    XPost: misc.phone.mobile.iphone

    On 6 Apr 2025 03:35:26 GMT, vallor <[email protected]> wrote in <[email protected]>:

    Alas, Macs don't have /proc.

    Would be nice if they did, though.

    This works on a Mac:

    #!/usr/bin/perl

    open(PS,'ps -avmxww|') || die;

    $header = <PS>;

    while(<PS>)
    {
    $line = $_;
    chomp($line);
    $line =~ s/^\s+//;
    ($pid,$stat,$t,$sl,$re,$pagein,$vsz,$rss,$rest) = split(/\s+/,$line,9);
    $proc{$pid}=$line;
    $rss{$pid}=$rss;
    $total_rss+=$rss;
    }

    @sorted = sort {$rss{$a} <=> $rss{$b}} (keys %rss);

    foreach $pid (@sorted)
    {
    print $proc{$pid},"\n";
    }

    printf ("Total RSS: %d pages (%d bytes)\n",$total_rss,$total_rss*1024);

    exit 0;

    --
    -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
    OS: Linux 6.14.0 Release: Mint 22.1 Mem: 258G
    "An unbreakable toy is useful for breaking other toys."

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)