Linux - NewbieThis 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.
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.
I have a physical server and also have a hosted virtual server.
The virtual server sometimes operates very slow.
Looking at the wa%, maybe a bit high, but typically it is not so high (I am doing a yum update as we speak). Also, I understand if it isn't a cpu or memory issue, it could be an application issue regarding the database, etc.
How can I limit the variables so I can determine the cause? For instance, if doing a yum update takes 2 times longer for only half the packages on the virtual server, does that tell you anything? Are there any tests I can do?
If I talk to the vps provider, they just ask whether I wish to pay more money for more memory or hard drive space, but I don't wish to do so if it will not help.
There are (almost) innumerable possibilities. First question is to you - why pay for a 386 guest; and why 12 G ?. Ok that was 2 questions.
i386 belongs in last century - and handling excessive memory was a massive kludge. Years ago Linus threatened not to accept bugs from anyone who ran 8G on 386.
Ignore yum updates - what do you really care about ?. Application run/response times, web page delays ... ? Collect data from when you care, and inspect that. Always being aware that you only see what the provider wants you to see - you will not know what is happening on the host system.
I'd be guessing I/O - maybe network as suggested on top of that as well. Get a decent data collector - collectl, collectd, ...
Having 0 swap isn't recommended, for 12G, I believe the recommendation for swap would be 4G+ for RHEL/CentOS.
Also is the machine all around slower? you mentioned yum takes longer but that could be down to network or a plugin, so doesn't say enough.
Thanks r3sistance, Yes, will investigate the swap memory. Yes, all around slower. Maybe network would have an effect on downloading, but not updating, right? What do you mean about a "plugin"?
There are (almost) innumerable possibilities. First question is to you - why pay for a 386 guest; and why 12 G ?. Ok that was 2 questions.
i386 belongs in last century - and handling excessive memory was a massive kludge. Years ago Linus threatened not to accept bugs from anyone who ran 8G on 386.
Ignore yum updates - what do you really care about ?. Application run/response times, web page delays ... ? Collect data from when you care, and inspect that. Always being aware that you only see what the provider wants you to see - you will not know what is happening on the host system.
I'd be guessing I/O - maybe network as suggested on top of that as well. Get a decent data collector - collectl, collectd, ...
Yes, I know too many possibilities, but don't know what to do.
What I care about? Things need to work! I have a php based sockets server implemented on my physical machine which works great. Put it on the virtual server, and things go down hill. Maybe should either switch hosts or spend more than I want and colo?
Thanks r3sistance, Yes, will investigate the swap memory. Yes, all around slower. Maybe network would have an effect on downloading, but not updating, right? What do you mean about a "plugin"?
A plugin is basically an additional module for a program that adds functionality, YUM has numerous plugins that can do many different things. If it were network then both upload and download would be affected.
Since you mention this is a VM, have you spoken to the hosting provider about it. I'd ask them if possible to check that there isn't any issues from the infrastructure, such as CPU Ready or Memory Ballooning. As an idle VM, shouldn't really be using any io, one explanation maybe an issue on the underlying infrastructure.
Should have 4-8GB swap space but no more than that.. If your server slows down at certain times than that could mean that's when your users are using it, and if's that the case then you may need to allocate more resources.
With zero objective performance data, there is no way you can make sensible decisions.
See my previous post - even sar will do, but its data collection is very coarse.
I imagine you get what you pay for. Premium users will get premium access to facilities.
If the performance problems are intermittent and if you don't own the physical server on which you run the virtual server, it could even be that the physical server is overallocated and things all of a sudden go slow just because other customers are "stealing" away from you CPU/disk/network/RAM (could be that the host is swapping a little bit).
Or maybe your provider has some kind of "resource comsumption plan" and from time to time you reach the max CPU/disk/network/RAM usage and the host decreases automatically the available resources for a while.
Otherwise I agree with the others, especially with syg00.
I use since a long time the combination of "collectd" as metrics gatherer + "carbon/graphite" as DB + "grafana", which give me a very nice overview of performance metrics over time.
Perhaps the networking is set to the 10 side of 10/100. It depends on what you are considering "slow". Is it consistently slow? Or does it come and go?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.