New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Minimal Ubuntu on VMWare VPS? :(
Hi guys,
I was trying to get my VPS minimal but I couldn't find any helpful guide to do it myself I follow OpenVZ guide on ubuntu Wiki but it didn't help much.
My VPS is using 100MB after I did:
sudo apt-get purge wpasupplicant xkb-data tasksel tasksel-data console-setup dmidecode eject ethtool laptop-detect mii-diag ntpdate pciutils pcmciautils ubuntu-minimal usbutils wireless-tools
sudo apt-get autoremove
initctl stop tty1
initctl stop tty2
initctl stop tty3
initctl stop tty4
initctl stop tty5
initctl stop tty6
rm /etc/event.d/tty*
rm /etc/init/tty*
How to get the RAM usage to about 10MB as we seen on another VPS Platform (OpenVZ, Xen...)
Many thanks,
Comments
VMware is full virtualisation, opposed to OpenVZ and some other. This means you run an own instance of your kernel for example, so you will never get as low mem.usage as with openVZ.
On the other side; there used to float an minimal script over at LEB.com I mean. Designet to remove everything not needed. Would try that if I were you.
I've already install LES with bash setup-debian.sh system but memory is still high
Ehm...
A ps aux, htop, capture?
ps aux
htop
http://i.imgur.com/EiZTR.png
I don't know wth is that irqbalance, what happens if you kill it? :P
Also, VMWare tools isn't needed if you are not using a GUI, IMHO.
Also, atd? What's that? Like a cron? Shutdown xD.
Hmmm, there is some screen running.
Upstart-socket-bridge??? Wow ubuntu ¬¬
All these probably will save you another 10MB
I am about to suggest you to clean your cache, but that screenshot has only one hour since boot, so, not yet.
If you've more than 1 core and kill irqbalance you disable the distribution of interrupts. Means: everything i/o- and memory-specific is handled only by first core and thus lower performance. You don't need it on OVZ, but I dunno about VMWare? I guess VMWare is in-transparent like KVM, so then you might need it.
I'm 99.9% sure that IRQ balancing is handled natively in the kernel nowadays. You can cat /proc/interrupts without irqbalance running. If all interrupts are happening on one CPU#, then your kernel is not handling it, and you need to keep it running.
Remove open-ssh and change it to dropbear, if you're using bash change it to dash (its a default now on debian 6).
Also are you running a 32 or 64 bit OS?
I think so
I thought so, too, but then I found this:
IRQ balancing is deprecated in the Kernel and should not be enabled by default.
See http://www.kerneltrap.org/mailarchive/linux-kernel/2007/10/23/351370/thread
Also see the 2.6-kernel post-halloween document:
irqbalance (http://people.redhat.com/arjanv/irqbalance/) program.
I'm trying to remove vmtoolsd but got no luck
Just check mem usage by type free -m and it is 670/1000 now :O I've installed or uninstalled anything till now :-s
@japon Some links are broken o_O
Well, interesting finding but, really it will affect the performance? There is some benchamrk with or without it? Probably the difference is very very minimal (and probably the amount of saved RAM without that program too, hehe).
Ehm, sure??? Or after several months in this, you still don't understand:
http://www.linuxatemyram.com/
¬_¬!!
http://i.imgur.com/EiZTR.png
It uses 41 MB. That's normal.
It was 480/1000 with the last time I checked with htop :O
VMWare: Debian 6 64-bit + Lighttpd + Bind + Syslog-NG + SSH = 70MB
DON'T remove vmware tools.
Don't worry, I still have no idea how to remove it
Would you please give me more details? Which packages removed, etc...?
Scientific Linux 6 on a 128mb KVM using my setup script and with APC added.
Famous last words: "What does this button do?"
It's Ubuntu
I only got SSH access, there is no console, I have no idea what button you're talking about? :P
I can reach them without problems. Are you sure you don't have some kind of firewall/routing issue?
See more here: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/html/Realtime_Tuning_Guide/sect-Realtime_Tuning_Guide-General_System_Tuning-Interrupt_and_Process_Binding.html
Ubuntu 10.04.3 LTS x86 3.0.0-14-virtual KVM 512MB 1CPU - No Load
Still got some tweakage to do on this, fresh install last night; crazy swap size since I didn't want to risk messing with the installer any after having sh17loads of problems with it hanging over VNC.
ps_mem.py
free -m
free -m now
Exactly n_n
About 1 hour later, it will be:
:-s
Maybe later you can take a look at the 'top' output. Probably is a kind of 'balloning' or something like that?
How do I know it is 'balloning" or not? :-s It's vmware, not xen pv :-s
Here is top output now:
I said, a kind of, or something. Also:
http://www.google.com/search?q=vmware+ballooning
And do it later, when you experiment the problem. Now seems fine
Thank you. I'm still waiting @_@
New top output: