LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2009, 08:53 PM   #1
kusanagiyang
LQ Newbie
 
Registered: Nov 2009
Posts: 25

Rep: Reputation: 1
Use 512mb DDR2 as 64mb DDR2


hi,

i am relatively new to linux memory.
is it possible to use 512mb DDR2 as 64mb DDR2?
i need a smaller memory size for my project, but i couldn't find such small size ddr2.
any suggestion?
thanks in advance.
 
Old 11-09-2009, 09:01 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Try installing and running qemu with the memory option as such:
Code:
%qemu -hda your.img -m 64 -other configs values -boot c
You may need to specify the --no-kqemu option if the driver is built.
Use blackbox as a desktop and run qemu from the terminal leaving nothing else running. You should have 128M free to use if not more.
Build the distribution from source and add only the mods you need.
You can copy the finished image to a usb key and add a configuration script to run it using the values you want.
 
Old 11-09-2009, 09:01 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
...Why?...
why dont you use Sun VirtualBox - you can set the memory from 4 to 1000 MB!
 
Old 11-09-2009, 09:30 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
First thing, Virtualbox uses qemu and will use a virtual memory buffer that will add available memory to the virtual machine.
Second, VirtualBox is limited on the CPU architecture it can emulate or access, qemu does not have this limit.
Third, if he/she is building a project, the command line is the best way to do that.
Fourth, loaded modules will affect performance, possibly slowing down the machine. Qemu can also access drives by using the -hdX and -cdx codes on the command line.
Fifth, the images can be ported to any OS that runs qemu- including macintosh- file format of the image changed, or written to a cd.
 
Old 11-10-2009, 03:00 AM   #5
kusanagiyang
LQ Newbie
 
Registered: Nov 2009
Posts: 25

Original Poster
Rep: Reputation: 1
About using virtual machine

thanks for your suggestions to use any virtual machine ideas. for my project, i decided a while ago, when the project started, not to use any virtual tech. my project is about benchmarking 3rd party software. i should have mentioned this in my initial posting.

is there any switch that one can adjust or tweak so that a fedora box only use 128mb out of 512mb that is installed?

thanks


Quote:
Originally Posted by kusanagiyang View Post
hi,

i am relatively new to linux memory.
is it possible to use 512mb DDR2 as 64mb DDR2?
i need a smaller memory size for my project, but i couldn't find such small size ddr2.
any suggestion?
thanks in advance.
 
Old 11-10-2009, 03:07 AM   #6
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,466

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Hi

You can also pass MEM=128M as kernel parameter when you boot.
 
Old 11-10-2009, 10:02 AM   #7
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
The memory soltuion is either:
A) Follow kusanagiyang's advice.
B) Use qemu with a limited memory option.
Code:
-m 64
Don't install kvm or kqemu.
You'll need to install an environment that uses fewer resources.
 
1 members found this post helpful.
Old 11-11-2009, 06:03 AM   #8
kusanagiyang
LQ Newbie
 
Registered: Nov 2009
Posts: 25

Original Poster
Rep: Reputation: 1
Thank you so much

Quote:
Originally Posted by Guttorm View Post
Hi

You can also pass MEM=128M as kernel parameter when you boot.
this parameter makes a linux box behave in exact same manner such as only 128mb of memory is installed. in other words, to linux and softwares running upon, there is no distinction between actually 128mb of memory is installed, and other sizes memory with 'mem=128M' parameter.

please correct me if i am wrong.
thanks again
 
Old 11-11-2009, 06:16 AM   #9
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,466

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Yes.

I googled it a bit, and I found this link:

http://redsymbol.net/linux_boot_parameters/

Quote:
mem=nn[KMG] [KNL,BOOT] Force usage of a specific amount of memory
Amount of memory to be used when the kernel is not able
to see the whole system memory or for test.
[X86-32] Use together with memmap= to avoid physical
address space collisions. Without memmap= PCI devices
could be placed at addresses belonging to unused RAM.
Sorry I'm not sure if I really understood this, but I guess if it crashes, you will need to use a memmap parameter as well.
 
1 members found this post helpful.
Old 11-11-2009, 07:57 PM   #10
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Use the qemu option, so that you can have a system.
 
  


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
Large DDR2 linuxbird Linux - Hardware 12 11-25-2008 10:58 PM
distinguish DDr1 or DDr2 lhrt Linux - Hardware 3 07-29-2008 02:10 AM
DDR vs. DDR2 Question Linux31 Linux - Hardware 2 10-09-2007 12:45 PM
Can DDR and DDR2 be together? S.V. Linux - Hardware 1 01-01-2007 07:34 AM
What is the difference between DDR2 667 and DDR2 675? abefroman Linux - Hardware 2 11-02-2005 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 PM.

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