OXID Community Forum

> International Forums > Administration > Anyone gave tmp on a ramdisc a chance?
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Anyone gave tmp on a ramdisc a chance?


Reply
 
Thread Tools Display Modes
#Top   #1  
Old 02-23-2012, 05:10 PM
Niktator Niktator is offline
Member
Join Date: Nov 2011
Posts: 39
Niktator is on a distinguished road
Default Anyone gave tmp on a ramdisc a chance?

Hi,

I`m just tuning the pageload times of my oxid shop - and the xcache does not see any var data, and very less php hits at all. It seems normal tuning is just wasting of time, since the tmp folder "takes it all".
After all delivering cached things from the normal I/O stressed system is way faster then have no cache at all. But i`m really keen to know, if anyone tested a ramdisc yet.
Anyone?

greets, Nik
Reply With Quote
#Top   #2  
Old 02-23-2012, 07:48 PM
Niktator Niktator is offline
Member
Join Date: Nov 2011
Posts: 39
Niktator is on a distinguished road
Default AW: Anyone gave tmp on a ramdisc a chance?

... could not wait for your replys

Working flawless, the shop feels very very fast and smoth. Well, I can`t wait to relaunch my store to see the difference under heavy load.

greets, Nik
Reply With Quote
#Top   #3  
Old 02-23-2012, 08:56 PM
Hebsacker's Avatar
Hebsacker Hebsacker is online now
Moderator
Join Date: Feb 2009
Location: Freie Republik Hohenlohe
Posts: 11,637
Hebsacker is on a distinguished road
Default AW: Anyone gave tmp on a ramdisc a chance?

sounds interesting - would you mind to share your further experiences?
__________________
Ray
www.stahlwarenhaus-hebsacker.de______________._.__Tipps zur Forensuche
www.haller-stahlwaren.de____________________._____Tipps zum Forum
_________________________________________._____Forum für Dummies
Reply With Quote
#Top   #4  
Old 02-24-2012, 09:32 AM
Niktator Niktator is offline
Member
Join Date: Nov 2011
Posts: 39
Niktator is on a distinguished road
Default AW: Anyone gave tmp on a ramdisc a chance?

Quote:
Originally Posted by Hebsacker View Post
sounds interesting - would you mind to share your further experiences?
Hi,

of course. Currently I`m performing just apache benchmarks, gaining ~5% less load time.
Sounds "little", but the server was freakin fast before, too
I need to wait for a cluster finished his work, so i got time to write some basic thoughts, explaining why I give ramfs a try:

If ur on a common shared server, virtual root server, without raid, raid1, software raid - and so on, you`ll see reading performance of about 35-70mb/s. Well, if you got some serious hardware raid and SAS drives or even SSD, you`ll get some 190-260mb/s in small server systems, we`re mostly using. well that is close to nothing compared to a ramdisc which can - depending on the used hardware - perform (in my case) at ~6500mb/s.
All mb/s speeds are the average of different access types (there are very very big differences in i.e. sequential read/write, random read/write, and of course how much and what kind of data ur writing/reading).

next thing is the access time. this is a very important point: there is no need to get 4gb out of your tmp folder, so after all - we don`t need 6gb/s, but it won`t hurt.
most "spinning drives" perform at about 9-15ms average accesstime. using raids, the accesstime goes up. non linear related to the amount of used drives.
A good SSD drive (child-ready: no spinning things, no needle has to wait, till the needed sector comes by...) got 0.1ms access time. and this is already a very mighty improvement.
but here we go: memory we`re using today got access times from 8 to 30 ns. (no typo, that is nano, not ms).

to round it up:
- all values are kind of "round about". the memory my servers are using is doing 12gb/s - in theory. you will never hit that - losing a lot in overhead, checksum stuff, hard- and software and driver issues.
- when using ramdiscs be sure to use a unix system. no matter if *bsd(including apple), linux, solaris, hp-ux, whatever. in short words: don`t use windows
- decide what kind of implementation you want to use: ramfs, tmpfs, filesystembased (i prefer ramfs, be sure to have enough ram free, ramfs got no limitation!)
- do never ever save "mission critical" data on a ramdisc! even with UPS (europe: USV) it`s just a worse idea.

and here we finally go: very small differences in performance will help a LOT, when the system is on heavy load. take care of all small things, they sum up and boost your overall performance.

after the mentioned relaunch, i`ll post real-life benchmarks - comparing: 6 hdd raid10, SSD, ramfs.

greets, Nik
Reply With Quote
#Top   #5  
Old 02-24-2012, 10:29 AM
Hebsacker's Avatar
Hebsacker Hebsacker is online now
Moderator
Join Date: Feb 2009
Location: Freie Republik Hohenlohe
Posts: 11,637
Hebsacker is on a distinguished road
Default AW: Anyone gave tmp on a ramdisc a chance?

Hi Nik

You know about this whitepaper with some basic "tuning" informations?

http://docu.oxid-esales.com/devdocum...ptimierung.pdf
__________________
Ray
www.stahlwarenhaus-hebsacker.de______________._.__Tipps zur Forensuche
www.haller-stahlwaren.de____________________._____Tipps zum Forum
_________________________________________._____Forum für Dummies
Reply With Quote
#Top   #6  
Old 02-24-2012, 10:46 AM
Niktator Niktator is offline
Member
Join Date: Nov 2011
Posts: 39
Niktator is on a distinguished road
Default AW: Anyone gave tmp on a ramdisc a chance?

No, but just checked it. To be honest: In a tuning manual, I would expect to mention, that one should avoid using .htaccess whenever it`s possbile. Just place that directly in the vhost/host config!
The bad thing about .htaccess is, that on EVERY request, the whole tree starting from document root till the final dir will be checked.
So everything should be moved into the configuration - and to make it perfect - insert "AllowOverride None". This flag stops apache2 from searching for .htaccess files.

greets, Nik
Reply With Quote
#Top   #7  
Old 02-24-2012, 11:03 AM
Niktator Niktator is offline
Member
Join Date: Nov 2011
Posts: 39
Niktator is on a distinguished road
Default AW: Anyone gave tmp on a ramdisc a chance?

Uhm forgot to mention: maybe that whitepaper should include, that there are way faster http servers then apache2. especially, if it comes to file serving. cookieless domain with lighttpd for img, js, and so on will offer a big boost on big shops.
replacing apache2 by ngix is the next step.

well, there are tons of possibilitys to speed something up, i guess it would just ruin the whitepaper.

greets, Nik
Reply With Quote
#Top   #8  
Old 04-15-2012, 01:26 PM
Earlybird's Avatar
Earlybird Earlybird is offline
Senior Member
Join Date: Dec 2009
Posts: 482
Earlybird is on a distinguished road
Default AW: Anyone gave tmp on a ramdisc a chance?

I fully agree to what you say.

The Performance Tuning whitepaper mentioned above does not speed-up anything for me that I could measure on my root server (w/o ramdisc).

NginX makes sense - I'm using it for the pictures and media files, that's fine. Loading times are around 1.6 sec on the average and that's what Google webmaster displays as well.

I found an interesting article about ramdisk caching (German lang.): http://www.continum.net/Referenzen-Performance,171.html
There you can find some Oxid shop links in the text (not clearly marked) and check the performance in real production mode. They call it "Premium Cache" and claim 50-70% performance push. Actually. I've seen 0.3 - 0.8 sec load time in Chrome.

Did you try SSD yourself in the meanwhile ?

POST EX:
Related to performance as of 2012-05-21 - Intel 520 SSD in MySQL sysbench oltp benchmark
http://www.mysqlperformanceblog.com/...ltp-benchmark/

Last edited by Earlybird; 05-23-2012 at 09:40 AM.
Reply With Quote
Reply

Bookmarks

Tags
chance, gave, ramdisc, tmp

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Neuinstallation: Nach Admin login HTTP 500 Server - keine Chance ins BackEnd zu gelangen emporeo Installation und Konfiguration 3 02-11-2009 10:21 PM

All times are GMT +1. The time now is 04:59 AM.