Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: system loads and why

  1. #21
    Rob101 Guest

    Smile Imho

    <jibberish>
    My advice is, IMHO. HEAPS of stuff, in no particular order.

    depending where/what your bottlenecks are. I'm assuming you want to bring the volume of traffic down.

    You seem to be running apache on Linux (or at least your hosting provider, voice valley is, depending on your set-up).
    Install mod_gzip or mod_deflate, that will bring your text serving size down HEAPS for surprisingly little processing overhead. If you find you're losing too many CPU cycles, i'd suggest tuning the level of compression so that the response time is good but you also get reasonable compression.
    grep your apache logs into a mysql table. Do a 'group by' query and accumulate the number of hits per URI multiplied by the byte size of the responses.
    You'll find that the data is skewed to a few objects, which will probably be binary photographs. unlink the photographs.

    depending on the distribution of bytes / response objects, a reverse proxy might also help serve common, static objects.

    Check that your conditional requests are actually working. If clients are sending IMS requests and your server is sending back objects when it should be a positive cache acknowledgment.

    If processing is your bottleneck, depending on the level of access you have to the machine i'd probably install zend optimizer, it is apparently compatible with suhosin.

    If the DB is your bottleneck, you might need to look towards replication - which is probably too expensive.

    The main page http://www.aulro.com/ is FAR too large, 119.7k. Pull the CSS out into a separate file, each time someone loads the main page, they keep downloading the static CSS, it should be seperate and locally cached. Most/all of the javascript should also be placed in seperate objects.
    I'd pull all the whitespace from it too. It's just wasted.

    100 characters of space are great, but if one hundred people load the page, thats 10kb.

    think about removing dynamic content, like the time, from pages that are not otherwise changed. This will allow the content to be cached.

    ...

    are you serving any content other than this forum?
    </jibberish>

  2. #22
    Rob101 Guest

    Smile

    Not linux, sorry. FreeBSD?

  3. #23
    Join Date
    Apr 2002
    Location
    Godwin Beach 4511
    Posts
    20,689
    Total Downloaded
    32.38 MB
    Quote Originally Posted by Rob101 View Post
    <jibberish>
    My advice is, IMHO. HEAPS of stuff, in no particular order.

    depending where/what your bottlenecks are. I'm assuming you want to bring the volume of traffic down.

    You seem to be running apache on Linux (or at least your hosting provider, voice valley is, depending on your set-up).
    welcome to the honey pot, all is not as it seems :P

    Quote Originally Posted by Rob101
    Install mod_gzip or mod_deflate, that will bring your text serving size down HEAPS for surprisingly little processing overhead. If you find you're losing too many CPU cycles, i'd suggest tuning the level of compression so that the response time is good but you also get reasonable compression.
    long since done
    Quote Originally Posted by Rob101
    grep your apache logs into a mysql table. Do a 'group by' query and accumulate the number of hits per URI multiplied by the byte size of the responses.
    You'll find that the data is skewed to a few objects, which will probably be binary photographs. unlink the photographs.


    depending on the distribution of bytes / response objects, a reverse proxy might also help serve common, static objects.

    Check that your conditional requests are actually working. If clients are sending IMS requests and your server is sending back objects when it should be a positive cache acknowledgment.

    If processing is your bottleneck, depending on the level of access you have to the machine i'd probably install zend optimizer, it is apparently compatible with suhosin.
    zend and apc. found xcache problematic

    Quote Originally Posted by Rob101
    If the DB is your bottleneck, you might need to look towards replication - which is probably too expensive.
    agreed
    Quote Originally Posted by Rob101
    The main page http://www.aulro.com/ is FAR too large, 119.7k. Pull the CSS out into a separate file, each time someone loads the main page, they keep downloading the static CSS, it should be seperate and locally cached. Most/all of the javascript should also be placed in seperate objects.
    I'd pull all the whitespace from it too. It's just wasted.
    will look into that,..

    Quote Originally Posted by Rob101
    think about removing dynamic content, like the time, from pages that are not otherwise changed. This will allow the content to be cached.
    hmmmmmmmm yes and no... will be looking into some of the dynamics of the way it is setup.
    ...
    Quote Originally Posted by Rob101
    are you serving any content other than this forum?
    </jibberish>
    dedicated p4 box with 4gig of ram running freebsd with raided sata hdd's

    it is running an openads adserver for the system as well but that will be leaving shortly.

    and postfix for mail
    2007 Discovery 3 SE7 TDV6 2.7
    2012 SZ Territory TX 2.7 TDCi

    "Make the lie big, make it simple, keep saying it, and eventually they will believe it." -- a warning from Adolf Hitler
    "If you don't have a sense of humour, you probably don't have any sense at all!" -- a wise observation by someone else
    'If everyone colludes in believing that war is the norm, nobody will recognize the imperative of peace." -- Anne Deveson
    “What you leave behind is not what is engraved in stone monuments, but what is woven into the lives of others.” - Pericles
    "We can ignore reality, but we cannot ignore the consequences of ignoring reality.” – Ayn Rand
    "The happiness of your life depends upon the quality of your thoughts." Marcus Aurelius

  4. #24
    Rob101 Guest
    Oh yes.
    and I should say.
    Spectacular forum.

  5. #25
    Join Date
    Jan 1970
    Location
    Douglas Park, NSW
    Posts
    9,347
    Total Downloaded
    0
    I understood nothing of the above except this :
    Quote Originally Posted by Rob101 View Post
    Oh yes.
    and I should say.
    Spectacular forum.
    Understatement of the year IMO
    Scott

  6. #26
    Join Date
    Jul 2007
    Location
    Auckland, NZ
    Posts
    2,278
    Total Downloaded
    0
    Thinking of ways you can reduce the number of disk accesses.

    You using RAID to increase volume or for data replication/disk duplication? If the former, this can add significantly to your read/write times. With the cost of large disks being so low now it may be wise to consider copying everything onto a larger disk, e.g. 500Gb <$200, 1Tb still expensive but will come down soon.

    You might need to look at how big you have set the partitions (?). Can you move the swap disk to another drive (that'd be at least 4Gb on its own)?

    What about storing BLOBS on another drive?
    Alan
    2005 Disco 2 HSE
    1983 Series III Stage 1 V8

  7. #27
    Join Date
    Apr 2002
    Location
    Godwin Beach 4511
    Posts
    20,689
    Total Downloaded
    32.38 MB
    is a mirror for backup

    i will be upgrading the drives to some of the new 32mb cache gear this year some time.
    2007 Discovery 3 SE7 TDV6 2.7
    2012 SZ Territory TX 2.7 TDCi

    "Make the lie big, make it simple, keep saying it, and eventually they will believe it." -- a warning from Adolf Hitler
    "If you don't have a sense of humour, you probably don't have any sense at all!" -- a wise observation by someone else
    'If everyone colludes in believing that war is the norm, nobody will recognize the imperative of peace." -- Anne Deveson
    “What you leave behind is not what is engraved in stone monuments, but what is woven into the lives of others.” - Pericles
    "We can ignore reality, but we cannot ignore the consequences of ignoring reality.” – Ayn Rand
    "The happiness of your life depends upon the quality of your thoughts." Marcus Aurelius

  8. #28
    Rob101 Guest

    Angry

    Quote Originally Posted by incisor View Post
    will look into that,..
    Sorry, I think that I got the size of the page wrong by looking at the xfer rate in wget, rather than the object size. But the point still holds water.
    um, yeah. and now to stfu.

  9. #29
    Join Date
    Jul 2007
    Location
    Auckland, NZ
    Posts
    2,278
    Total Downloaded
    0
    Quote Originally Posted by incisor View Post
    is a mirror for backup
    Right, that shouldn't make too much difference, but with a large number of requests it could end up as a bottle neck as the disks sync with each other.

    Quote Originally Posted by incisor View Post
    i will be upgrading the drives to some of the new 32mb cache gear this year some time.
    You will probably notice a difference for a while. What are your storage requirements and will they increase by much?

    The requirement to store images outside the forum may be a necessary step although having the images as a library resource may have historical value in years to come.
    Alan
    2005 Disco 2 HSE
    1983 Series III Stage 1 V8

  10. #30
    Join Date
    Jul 2007
    Location
    Auckland, NZ
    Posts
    2,278
    Total Downloaded
    0
    Quote Originally Posted by Rob101 View Post
    and now to stfu.
    Not at all mate. Some good ideas in there
    Alan
    2005 Disco 2 HSE
    1983 Series III Stage 1 V8

Page 3 of 3 FirstFirst 123

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search AULRO.com ONLY!
Search All the Web!