Opened 9 years ago

Closed 9 years ago

Last modified 9 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:
Has a Patch: no Platform: All

Description

AboutSystem reports 1MB lower than actual RAM installed.

Attachments (1)

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

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by dru_ed

fixes the rounding error

comment:1 Changed 9 years ago by dru_ed

Has a Patch: set

comment:3 Changed 9 years ago by Wim

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 Changed 9 years ago by bonefish

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).

comment:5 in reply to:  4 Changed 9 years ago by Wim

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 Changed 9 years ago by Wim

Has a Patch: unset

comment:7 Changed 9 years ago by bonefish

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 Changed 9 years ago by bonefish

*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.