Print real / avail memory in megabytes rather than kilobytes.
This commit is contained in:
parent
29f194457c
commit
97b67f3141
@ -239,7 +239,8 @@ cpu_startup(dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %ld (%ldK bytes)\n", alpha_ptob(Maxmem), alpha_ptob(Maxmem) / 1024);
|
printf("real memory = %ld (%ld MB)\n", alpha_ptob(Maxmem),
|
||||||
|
alpha_ptob(Maxmem) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
@ -258,8 +259,8 @@ cpu_startup(dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up buffers, so they can be used to read disk labels.
|
* Set up buffers, so they can be used to read disk labels.
|
||||||
|
@ -199,8 +199,8 @@ cpu_startup(dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
|
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1024);
|
ptoa(Maxmem) / 1048576);
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
*/
|
*/
|
||||||
@ -220,8 +220,8 @@ cpu_startup(dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up buffers, so they can be used to read disk labels.
|
* Set up buffers, so they can be used to read disk labels.
|
||||||
|
@ -199,8 +199,8 @@ cpu_startup(dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
|
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1024);
|
ptoa(Maxmem) / 1048576);
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
*/
|
*/
|
||||||
@ -220,8 +220,8 @@ cpu_startup(dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up buffers, so they can be used to read disk labels.
|
* Set up buffers, so they can be used to read disk labels.
|
||||||
|
@ -169,7 +169,8 @@ cpu_startup(dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %ld (%ldK bytes)\n", ia64_ptob(Maxmem), ia64_ptob(Maxmem) / 1024);
|
printf("real memory = %ld (%ld MB)\n", ia64_ptob(Maxmem),
|
||||||
|
ia64_ptob(Maxmem) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
@ -188,8 +189,8 @@ cpu_startup(dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
if (fpswa_interface == NULL)
|
if (fpswa_interface == NULL)
|
||||||
printf("Warning: no FPSWA package supplied\n");
|
printf("Warning: no FPSWA package supplied\n");
|
||||||
|
@ -219,8 +219,8 @@ cpu_startup(dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
|
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1024);
|
ptoa(Maxmem) / 1048576);
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
*/
|
*/
|
||||||
@ -240,8 +240,8 @@ cpu_startup(dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up buffers, so they can be used to read disk labels.
|
* Set up buffers, so they can be used to read disk labels.
|
||||||
|
@ -219,8 +219,8 @@ cpu_startup(dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
|
printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1024);
|
ptoa(Maxmem) / 1048576);
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
*/
|
*/
|
||||||
@ -240,8 +240,8 @@ cpu_startup(dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up buffers, so they can be used to read disk labels.
|
* Set up buffers, so they can be used to read disk labels.
|
||||||
|
@ -186,8 +186,8 @@ cpu_startup(void *dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %ld (%ldK bytes)\n", ptoa(Maxmem),
|
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1024);
|
ptoa(Maxmem) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
@ -207,8 +207,8 @@ cpu_startup(void *dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up buffers, so they can be used to read disk labels.
|
* Set up buffers, so they can be used to read disk labels.
|
||||||
|
@ -186,8 +186,8 @@ cpu_startup(void *dummy)
|
|||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_init();
|
perfmon_init();
|
||||||
#endif
|
#endif
|
||||||
printf("real memory = %ld (%ldK bytes)\n", ptoa(Maxmem),
|
printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
|
||||||
ptoa(Maxmem) / 1024);
|
ptoa(Maxmem) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Display any holes after the first chunk of extended memory.
|
* Display any holes after the first chunk of extended memory.
|
||||||
@ -207,8 +207,8 @@ cpu_startup(void *dummy)
|
|||||||
|
|
||||||
vm_ksubmap_init(&kmi);
|
vm_ksubmap_init(&kmi);
|
||||||
|
|
||||||
printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
|
printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
|
||||||
ptoa(cnt.v_free_count) / 1024);
|
ptoa(cnt.v_free_count) / 1048576);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up buffers, so they can be used to read disk labels.
|
* Set up buffers, so they can be used to read disk labels.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user