Tag Info

Hot answers tagged

4

Honestly, I wouldn't be using Ubuntu for this... but there are options that can be applied to any Linux variant. You'll want to increate your network stack buffers: net.core.rmem_default = 10000000 net.core.wmem_default = 10000000 net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 If the application is writing to disk, maybe a scheduler/elevator ...


4

Congratulations, you've managed to use nearly all of your swap space. The first obvious problem here is that you went very deep into swap. This is probably what's causing the system to thrash so hard (lots of time spent in system, I/O wait and software interrupts). First thing to do is to reduce the number of Apache processes that are running. You don't ...


3

Before anything, based on the screenshot you have posted with htop output, it seems you have 512MB of RAM on a site running WordPress? I have never seen WordPress happy on servers less than 1GB of RAM. Maybe if you are running a test or development site, 512MB is adequate, but for a production site you need 1GB of RAM. That is the root of your problem. That ...


3

Taskset is for binding a process to one or more CPUs; essentially specifying where it can run at initial execution or while it's running. If using RHEL/CentOS on modern server equipment, numactl is recommended over taskset. Cpuset/cset is for CPU shielding and is a framework build around Linux cgroups. Cset was never popular on certain distributions (like ...


3

Upgrade your server I know you don't want to hear it. I know you client doesn't want to hear it. But it's what you need to hear! If the client is running 4 websites (production no less) they should fork out some cash for a better server. But why? micro instances are NOT designed for production use (AWS says so themselves), they suffer from contention, ...


3

As long as you have 8 cores a load of 16-20 translates to 2-2.5 single-processor style, which is not bad (basically, two cars at the stop light instead of one). You have a process ... ffmpeg maybe? ... that seems to be hogging a single core (not multi-thread happy I'd guess) and probably doing a lot of I/O (corresponding bump in lower left chart) I would ...


2

First off, you can use the great info here: http://penetrateit.wordpress.com/2012/02/11/exchange-2010-balancing-the-number-of-mailboxes-and-average-size-across-all-databases/ to figure out some stats needed to help balance the mailboxes across databases. Or you can use Steve's script here: http://www.stevieg.org/2010/09/balancing-exchange-databases/ ...


2

The reason for using noatime or relatime on an actual disk is that without it reads will also involve writing to disk. This additional writing can slow down the system, cause disks to spin up which would otherwise have remained spun down for much longer, as well as cause wear on flash media. But with tmpfs no data ever has to be written to disk. The data ...


2

This boils down to file system and procfs tuning. What you explain as 'high' load is situation where other normal processes on system are starved from reads and they forced to wait. Situation is characterized by high share of CPU wait time (check top %wa) many processes in D state (uninterruptible sleep due to waiting for reads from disk) Using noop ...


2

It makes no sense to try to keep the load low at all costs. What is important is that your process steps back if something more important needs to make use of the resources offered by your system. ionice and nice / renice can be used to reduce the priority so that it only runs when the system is otherwise idle.


2

Separate your application and display logic (front) from your data access logic and storage (back). The database is going to generate a lot of IO activity, and as such will slow down other things inside the same server. Add RAM. no, seriously, add RAM. Accessing data stored in memory is faster than accessing data stored inside a flash-drive, which is ...


1

If you're going the route of high performance typically you'll want to run as few other (scheduled) processes as possible as they'll interfere with your application. Linux, like the classical UNIX operating systems, is designed to run multiple applications concurrently in a fair way and tries to prevent resource starvation and you'll be aiming for the ...


1

According to top, it looks like something is using up a good amount of CPU. Update your post with the process list according to top. More than likely, something is pulling a lot of I/O on the server and exhausting RAM as most of your swap is cached (so, recently used). The load should not be that high on a healthy server.


1

Start by tracing what is taking too long with Chrome/IE developer tools (network tab). Confirming that the slowness is happening for all requests irrespective of type, trace the path from end user to your server (traceroute) looking for any excessive delays. Test from multiple places. On the server, check the number of open connections (netstat -antp | ...


1

not sure about the 'over 50 seconds' aspect, but you could poll to see if your CPU is over a certain limit. Just a quick sketch in powershell... # checks cpu threshold and runs script in $scriptName variable function CPUthreshold { # mandatory single variable in function for script name Param( [Parameter(Mandatory=$true)] ...


1

echo 640 > /sys/block/sda/queue/max_sectors_kb That seems a particularly odd value for max_sectors_kb. You've not said which SSD this is - but most modern drives I've come across are using 4128 byte sectors (although many lie about their geometry - presumably to keep other operating systems happy). Certainly your OS is likely using 4kb pages, although ...


1

if it is "2.6.32-279" then it is a bug, upgrade it. Should be either equal or more as you mentioned in the link.



Only top voted, non community-wiki answers of a minimum length are eligible