LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-20-2012, 02:35 AM   #1
technorat
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Rep: Reputation: 0
Lightbulb 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..
 
Old 06-20-2012, 01:18 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
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.
 
1 members found this post helpful.
Old 06-21-2012, 11:59 AM   #3
technorat
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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???
 
Old 06-21-2012, 01:51 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
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.
 
Old 06-25-2012, 11:46 PM   #5
darthaxul
Member
 
Registered: Aug 2008
Distribution: Devuan; Gentoo; FreeBSD
Posts: 236

Rep: Reputation: 19
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux see 3.5G ram, bios shows 64GB ram mahmoodn Linux - Server 8 06-12-2012 04:35 AM
[SOLVED] Partitioning 320gb HD & 2gb RAM for Web Development in Arch Linux dxtrpn Linux - Newbie 6 10-03-2011 09:43 PM
All RAM not being recognized on Linux RHEL after adding RAM manouche Linux - Enterprise 4 04-18-2008 10:31 AM
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 12:14 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration