LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   partitioning RAM using linux (https://www.linuxquestions.org/questions/linux-hardware-18/partitioning-ram-using-linux-4175412400/)

technorat 06-20-2012 02:35 AM

partitioning RAM using linux
 
Hello guys..Im currently working on Asymmetric multiprocessing in multicore processors. I just wanna know how we can partition RAM via linux such that one core uses one third of the RAM and the other uses the remaining portion.
It would be of great help if any of you guys help me out on this..and iam working in Pentium D processors..Thank u..

jefro 06-20-2012 01:18 PM

I hope I am not wrong on this. At the OS level, I'd say no. To allocate a memory block at boot to a core would be beyond a common distro. Not even sure anyone ever wanted to do such a task for any reason. You can limit ram used but not by some hard partition. You can allocate it later for an application.

If you mean partition as in like a ram based drive then that is another issue.

technorat 06-21-2012 11:59 AM

What i am trying to achieve is to have two different versions of linux run on different processors in a dual core processor. I am just trying to achieve asymmetric multiprocessing in a dual core machine. An idea what i got was to partition the RAM and assign it to each OS in each core such that processes in one core's partition is not used by another cores' partition. You guyz have any idea of how to do this??? :)

jefro 06-21-2012 01:51 PM

Your post kind of conflicts in parts.
ASMP or AMP would be possible and is still used. To have a two OS's and only two cores makes this really impossible. Each would have nothing to do with AMP.

The term partition ram tends to make a statement of direct ram control based on memory regions. Most ways don't care where the memory is. They tend to only select some set amount and some process controls how to allocate it and use it.

A common x86 computer never really was intended to use two OS's at once. Other commercial big iron was and some of that has been ported to some of the latest servers. They are built to have more virtual support. Virtual support in a thing like bare metal would allow the bare metal vm to have great control over the hardware. I get the feeling that xen or esxi of other type of bare metal is what you may be thinking about.

darthaxul 06-25-2012 11:46 PM

rammy
 
I think what you want is to limit the max amount of RAM the OS sees. You can try messing around with /proc/meminfo.
If not then there has to be a way to statically assign memory allocations but unless your host OS allows that you might have to use a virtual machine environment for each machine. That would be the preferred way because the virtual machines can be segregated.


All times are GMT -5. The time now is 09:47 PM.