Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6124 closed enhancement (fixed)

AboutSystem reports RAM lower than actual

Reported by: dru_ed Owned by: axeld
Priority: low Milestone: R1
Component: System/Boot Loader Version: R1/Development
Keywords: ram reporting aboutsystem Cc:
Blocked By: Blocking:
Platform: All

Description

AboutSystem reports 1MB lower than actual RAM installed.

Attachments (1)

aboutsysramreportingfix.patch (641 bytes ) - added by dru_ed 14 years ago.
fixes the rounding error

Download all attachments as: .zip

Change History (8)

by dru_ed, 14 years ago

fixes the rounding error

comment:1 by dru_ed, 14 years ago

patch: 01

comment:3 by Wim, 14 years ago

The problem with this patch is that there is no rounding error, the original calculation is correct (although it should use B_PAGE_SIZE to make it independent of the actual page size).

It seems that the system just reports 1MB less memory than what is physically available. You can open a terminal and type "ps -i" to confirm this.

comment:4 by bonefish, 14 years ago

Priority: normallow
Version: R1/alpha2R1/Development

ATM the kernel (actually the boot loader already) ignores all memory below 1 MB, as well as very short discontiguous ranges of memory, and memory used by ACPI. It could be argued that those are indeed not available to Haiku. It would be possible to sum up those ignored ranges in the boot loader, pass them to the kernel, and just add them for reporting purposes (probably to both available and used memory).

in reply to:  4 comment:5 by Wim, 14 years ago

Component: Applications/AboutSystemSystem/Boot Loader
Owner: changed from nobody to axeld
Type: bugenhancement

Replying to bonefish:

It would be possible to sum up those ignored ranges in the boot loader, pass them to the kernel, and just add them for reporting purposes (probably to both available and used memory).

IMHO, I would prefer this since the current way of reporting is confusing from a user point of view. I don't think this classifies as a bug though.

comment:6 by Wim, 14 years ago

patch: 10

comment:7 by bonefish, 14 years ago

Resolution: fixed
Status: newclosed

Implemented in hrev37116/hrev37117. Under qemu the system still reports about 1 MB less than installed for 256 or 512 MB, on real hardware I get 4091/4096 MB (Linux: 3.86 GB). That's all we get from the BIOS, though, so I don't think there's anything we can do about it. Closing.

comment:8 by bonefish, 14 years ago

*cough* Forgot to actually add the ignored memory to the maximum available in hrev37117. hrev37127 fixes that, and in qemu with 256 or 512 MB AboutSystem reports the correct number, now. sysinfo shows that still about 400 KB are missing, though.

Note: See TracTickets for help on using tickets.