public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Just cosmethic but...
@ 2002-08-04 22:37 DervishD
  2002-08-04 23:19 ` J.A. Magallon
  0 siblings, 1 reply; 4+ messages in thread
From: DervishD @ 2002-08-04 22:37 UTC (permalink / raw)
  To: Linux-kernel

    Hi all :)

    The output of 'cat /proc/meminfo' is ugly by today standards,
since is very frequent having more than 99 Mb of RAM and the current
meminfo just supports 8 digits before outputting ugly tabulations.

    So, how about raising that 8 digits to at least 10, thus allowing
pretty tabulations up to 9 Gb of RAM?

    If it will be accepted I can make the patch against the current
-ac kernel, for example. I know that is only a cosmethic change, but
I use meminfo a lot and I would like to see a good tabulation ;))

    Raúl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Just cosmethic but...
  2002-08-04 22:37 Just cosmethic but DervishD
@ 2002-08-04 23:19 ` J.A. Magallon
  2002-08-05  9:36   ` DervishD
  0 siblings, 1 reply; 4+ messages in thread
From: J.A. Magallon @ 2002-08-04 23:19 UTC (permalink / raw)
  To: DervishD; +Cc: Linux-kernel


On 20020805 DervishD wrote:
>     Hi all :)
> 
>     The output of 'cat /proc/meminfo' is ugly by today standards,
> since is very frequent having more than 99 Mb of RAM and the current
> meminfo just supports 8 digits before outputting ugly tabulations.
> 
>     So, how about raising that 8 digits to at least 10, thus allowing
> pretty tabulations up to 9 Gb of RAM?
> 

Why 10 ?
    unsigned long k32= ~0;
    unsigned long long k64 = ~0;
    printf("%d %lu\n",sizeof(k32)*8,k32);
    printf("%d %llu\n",sizeof(k64)*8,k64);

gives

32 4294967295
64 18446744073709551615

On a 64 bit box you could have 2^64 bytes.
Opps, and on a 32bit box you could have 16Gb of swap ?
1Tb is:
    unsigned long long k64 = 1ULL<<40;
64 1099511627776

13 digits (nice number ;))

Sorry, late at night here...

-- 
J.A. Magallon                           \                 Software is like sex:
junk.able.es                             \           It's better when it's free
Mandrake Linux release 9.0 (Cooker) for i586
Linux 2.4.19-jam0 (gcc 3.2 (Mandrake Linux 9.0 3.2-0.2mdk))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Just cosmethic but...
  2002-08-04 23:19 ` J.A. Magallon
@ 2002-08-05  9:36   ` DervishD
  2002-08-05 16:29     ` Kasper Dupont
  0 siblings, 1 reply; 4+ messages in thread
From: DervishD @ 2002-08-05  9:36 UTC (permalink / raw)
  To: jamagallon, raul; +Cc: linux-kernel

    Hi Magallon :)

>>     So, how about raising that 8 digits to at least 10, thus allowing
>> pretty tabulations up to 9 Gb of RAM?
>Why 10 ?

    Just for being conservative ;)) Truly, the whole format should be
changed, but...

>13 digits (nice number ;))

    I think that 13 digits will fit well too ;))

    Raúl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Just cosmethic but...
  2002-08-05  9:36   ` DervishD
@ 2002-08-05 16:29     ` Kasper Dupont
  0 siblings, 0 replies; 4+ messages in thread
From: Kasper Dupont @ 2002-08-05 16:29 UTC (permalink / raw)
  To: DervishD; +Cc: jamagallon, linux-kernel

DervishD wrote:
> 
> Truly, the whole format should be changed, but...

In that case try removing the first three lines, and
start fixing all userspace programs that breaks.

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:razrep@daimi.au.dk
or mailto:mcxumhvenwblvtl@skrammel.yaboo.dk

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-05 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-04 22:37 Just cosmethic but DervishD
2002-08-04 23:19 ` J.A. Magallon
2002-08-05  9:36   ` DervishD
2002-08-05 16:29     ` Kasper Dupont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox