System is a P233MMX w/128 MB ram running Red Hat 5.2 with the Real-Time
Linux 0.9J patches. I'm using the append="mem=XXXm" line in lilo.conf to
prevent linux from using all of conventional RAM so I can create a shared
memory area within which both normal user processes and real-time processes
can communicate.
This works. But my problem is to be able to dynamically find the start of
the reserved area on a number of systems, not all equal, without parsing
the lilo.conf file.
I thought of using /proc/meminfo but I'm getting confusing results as
follows:
mem=XXXm MemTotal
124 123776
123 122764
122 121756
The difference between the MemTotal for 124 and 123 is 1012 Kb and between
123 and 122 it's only 1008 Kb. Neither of which is the 1024 kB that I'd
expect.
So, the question is, from MemTotal (or anything else), how can I reliably
find the start of the reserved memory area (assume the program will only be
run on a system which has such a reserve)?
Any and all suggestions, hints, pointers, URLs (and even constructive
flames) are welcome.
Thanks
Norm
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/