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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-09-2009, 08:53 PM
|
#1
|
LQ Newbie
Registered: Nov 2009
Posts: 25
Rep:
|
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.
|
|
|
11-09-2009, 09:01 PM
|
#2
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
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.
|
|
|
11-09-2009, 09:01 PM
|
#3
|
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
|
...Why?...
why dont you use Sun VirtualBox - you can set the memory from 4 to 1000 MB!
|
|
|
11-09-2009, 09:30 PM
|
#4
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
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.
|
|
|
11-10-2009, 03:00 AM
|
#5
|
LQ Newbie
Registered: Nov 2009
Posts: 25
Original Poster
Rep:
|
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
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.
|
|
|
|
11-10-2009, 03:07 AM
|
#6
|
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,466
|
Hi
You can also pass MEM=128M as kernel parameter when you boot.
|
|
|
11-10-2009, 10:02 AM
|
#7
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
The memory soltuion is either:
A) Follow kusanagiyang's advice.
B) Use qemu with a limited memory option. Don't install kvm or kqemu.
You'll need to install an environment that uses fewer resources.
|
|
1 members found this post helpful.
|
11-11-2009, 06:03 AM
|
#8
|
LQ Newbie
Registered: Nov 2009
Posts: 25
Original Poster
Rep:
|
Thank you so much
Quote:
Originally Posted by Guttorm
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
|
|
|
11-11-2009, 06:16 AM
|
#9
|
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,466
|
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.
|
11-11-2009, 07:57 PM
|
#10
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
Use the qemu option, so that you can have a system.
|
|
|
All times are GMT -5. The time now is 05:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|