Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-21-2013, 07:17 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Server › Proxy Server v
« Previous 1 2 3 4 Next »

Menghitung Disk Cache (cache_dir) pada Squidproxy

Home General Computer Multimedia Business Lounge

Pages (2): 1 2 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
Menghitung Disk Cache (cache_dir) pada Squidproxy
11-26-2011, 12:54 PM (This post was last modified: 11-26-2011 01:55 PM by chaer.newbie.)
Post: #1
chaer.newbie Offline
--------------------------
*****
Dewa
Posts: 5,272
Joined: Dec 2009
Reputation: 184
Menghitung Disk Cache (cache_dir) pada Squidproxy
1. Gunakan 80% dari ukuran disk sebagai ruang penyimpanan cache
2. Pada squid, disk cache di definisikan dengan tag “cache_dir”. adapun format defaultnya adalah : “cache_dir Type Directory-Name Mbyte L1 L2 [options]”

keterangan:

1. cache_dir adalah tag yang mendefinisikan directory cache.
2. Type adalah jenis penyimpanan sistem, defaultnya adalah ufs. jika akan menggunakan sistem penyimpanan jenis lain seperti diskd atau aufs maka perlu menambah options –enable-storeio=”diskd, aufs” ketika mengkompile squid.
3. Directory-Name adalah menunjukkan letak directory akan di buat cache misalkan /cache. ingat, owner dan group directory ini harus sesuai dengan user yang menjalankan squid. adalah sebuah larangan squid di jalankan dengan user root.
4. Mbyte (numeric) adalah pendifinisian besarnya media penyimpanan yang akan di gunakan cache, misalkan yang akan di gunakan adalah 40GB maka pada Mbyte harus tertulis 20000, MByte ini akan berhubungan dengan tag lain yaitu “cache_swap_low 90″ dan “cache_swap_high 95″.
5. L1 (numeric) adalah jumlah directory yang akan di buat di dalam directory /cache ketika perintah #/usr/local/sbin/squid -z di eksekusi.
6. L2 (numeric) adalah jumlah directory yang akan di buat di dalam masing-masing directory L1 ketika perintah #/usr/local/sbin/squid -z di eksekusi.



Lalu bagaimana menentukan L1 ?, berikut adalah rumus yang di pakai.

((( x / y ) / 256 ) / 256 ) * 2 ≈ L1
x = besarnya disk cache yang akan di gunakan, satuannya adalah Kb (40 GB = 40.000.000 KB) *biar cepet ngakak
y = jumlah rata-rata object biasanya bernilai 13Kb
misalkan besarnya cache disk adalah 20 GB maka:

(((20.000.000/13)/256)/256)*2 ≈ 47 (dibulatkan kepantat) ketawa

Maka nilai L1 adalah 47.


jadi hasilnya bilang menggunakan cache 20 GB

cache_dir aufs /proxy 20000 47 256
Find all posts by this user
Quote this message in a reply
11-26-2011, 01:27 PM (This post was last modified: 11-26-2011 01:28 PM by ketek.)
Post: #2
ketek Offline
bocah ingusan
*******
Administrators
Posts: 2,168
Joined: Jan 2010
Reputation: 369
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
1. Gunakan 80% dari ukuran disk sebagai ruang penyimpanan cache
er jelasin dong ngapa cuma 80 % yg kudu dipake peace
Find all posts by this user
Quote this message in a reply
11-26-2011, 01:52 PM
Post: #3
chaer.newbie Offline
--------------------------
*****
Dewa
Posts: 5,272
Joined: Dec 2009
Reputation: 184
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
(11-26-2011 01:27 PM)ketek Wrote:  1. Gunakan 80% dari ukuran disk sebagai ruang penyimpanan cache
er jelasin dong ngapa cuma 80 % yg kudu dipake peace

wah kenapa yyah gw juga bingung, pasrah

kayaknya 20 % 30% sih bebas tergantung ngadminnya cambuk
yang ga boleh ngelebihin 80% kayaknya menghindari terjadinya keresh.. metal:

gitu kali yak. gw juga ga tau soalnya prustasi
Find all posts by this user
Quote this message in a reply
11-26-2011, 02:16 PM (This post was last modified: 11-26-2011 02:17 PM by ketek.)
Post: #4
ketek Offline
bocah ingusan
*******
Administrators
Posts: 2,168
Joined: Jan 2010
Reputation: 369
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
wkwkkw biar gak dibilang hoax, ni om

Let's see an example: you have a 9Gb disk (these times they're even hard to find..). First thing, manifacturers often lie about disk capacity (the whole Megabyte vs Mebibyte issue), and then the OS needs some space for its accounting structures, so you'll reasonably end up with 8Gib of useable space. You then have to account for another 10% in overhead for Squid, and then the space needed for keeping fragmentation at bay. So in the end the recommended cache_dir setting is 6000 to 7000 Mebibyte.
http://wiki.squid-cache.org/SquidFaq/Con...d_I_use.3F
Find all posts by this user
Quote this message in a reply
11-26-2011, 02:24 PM (This post was last modified: 11-26-2011 02:25 PM by chaer.newbie.)
Post: #5
chaer.newbie Offline
--------------------------
*****
Dewa
Posts: 5,272
Joined: Dec 2009
Reputation: 184
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
(11-26-2011 02:16 PM)ketek Wrote:  wkwkkw biar gak dibilang hoax, ni om

Let's see an example: you have a 9Gb disk (these times they're even hard to find..). First thing, manifacturers often lie about disk capacity (the whole Megabyte vs Mebibyte issue), and then the OS needs some space for its accounting structures, so you'll reasonably end up with 8Gib of useable space. You then have to account for another 10% in overhead for Squid, and then the space needed for keeping fragmentation at bay. So in the end the recommended cache_dir setting is 6000 to 7000 Mebibyte.
http://wiki.squid-cache.org/SquidFaq/Con...d_I_use.3F

wah iyak berarti bener kalo harus dibawah 80% menghindari terjadinya keresh kwakkwaoakwokao analisa gw emang hebat cambuk
Find all posts by this user
Quote this message in a reply
11-26-2011, 03:11 PM
Post: #6
74jTeZ Offline
./Junk3r 1st C4d3t
Posts: 284
Joined: Nov 2011
Reputation: 5
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
(11-26-2011 02:24 PM)chaer.newbie Wrote:  
(11-26-2011 02:16 PM)ketek Wrote:  wkwkkw biar gak dibilang hoax, ni om

Let's see an example: you have a 9Gb disk (these times they're even hard to find..). First thing, manifacturers often lie about disk capacity (the whole Megabyte vs Mebibyte issue), and then the OS needs some space for its accounting structures, so you'll reasonably end up with 8Gib of useable space. You then have to account for another 10% in overhead for Squid, and then the space needed for keeping fragmentation at bay. So in the end the recommended cache_dir setting is 6000 to 7000 Mebibyte.
http://wiki.squid-cache.org/SquidFaq/Con...d_I_use.3F

wah iyak berarti bener kalo harus dibawah 80% menghindari terjadinya keresh kwakkwaoakwokao analisa gw emang hebat cambuk

omz cheran emang hebat.. smangat
Find all posts by this user
Quote this message in a reply
11-26-2011, 09:53 PM
Post: #7
mariachi Away
has been reboot
**
Moderators
Posts: 2,359
Joined: Nov 2010
Reputation: 55
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
(11-26-2011 02:24 PM)chaer.newbie Wrote:  
(11-26-2011 02:16 PM)ketek Wrote:  wkwkkw biar gak dibilang hoax, ni om

Let's see an example: you have a 9Gb disk (these times they're even hard to find..). First thing, manifacturers often lie about disk capacity (the whole Megabyte vs Mebibyte issue), and then the OS needs some space for its accounting structures, so you'll reasonably end up with 8Gib of useable space. You then have to account for another 10% in overhead for Squid, and then the space needed for keeping fragmentation at bay. So in the end the recommended cache_dir setting is 6000 to 7000 Mebibyte.
http://wiki.squid-cache.org/SquidFaq/Con...d_I_use.3F

wah iyak berarti bener kalo harus dibawah 80% menghindari terjadinya keresh kwakkwaoakwokao analisa gw emang hebat cambuk

palingan tadi jawabnya ngasal aja ngantuk
Find all posts by this user
Quote this message in a reply
11-27-2011, 12:42 AM
Post: #8
Matmund Newbie Away
Devilzc0deR Sejati
****
Global Moderators
Posts: 856
Joined: Mar 2010
Reputation: 36
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
(11-26-2011 02:24 PM)chaer.newbie Wrote:  wah iyak berarti bener kalo harus dibawah 80% menghindari terjadinya keresh kwakkwaoakwokao analisa gw emang hebat cambuk

tambah sempurna aja kegantengan ente.. moga cepet laku mas bro.. hmm
Visit this user's website Find all posts by this user
Quote this message in a reply
11-27-2011, 07:28 AM
Post: #9
Rev Aris Offline
./Devilz Advisor
Posts: 941
Joined: Jul 2011
Reputation: 19
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
(11-26-2011 09:53 PM)t3k0 Wrote:  
(11-26-2011 02:24 PM)chaer.newbie Wrote:  
(11-26-2011 02:16 PM)ketek Wrote:  wkwkkw biar gak dibilang hoax, ni om

Let's see an example: you have a 9Gb disk (these times they're even hard to find..). First thing, manifacturers often lie about disk capacity (the whole Megabyte vs Mebibyte issue), and then the OS needs some space for its accounting structures, so you'll reasonably end up with 8Gib of useable space. You then have to account for another 10% in overhead for Squid, and then the space needed for keeping fragmentation at bay. So in the end the recommended cache_dir setting is 6000 to 7000 Mebibyte.
http://wiki.squid-cache.org/SquidFaq/Con...d_I_use.3F

wah iyak berarti bener kalo harus dibawah 80% menghindari terjadinya keresh kwakkwaoakwokao analisa gw emang hebat cambuk

palingan tadi jawabnya ngasal aja ngantuk

wakakakakak
surim
pasrah
Visit this user's website Find all posts by this user
Quote this message in a reply
11-27-2011, 10:34 AM
Post: #10
lonely.army Offline
./Devilz Officer
Posts: 132
Joined: Oct 2010
Reputation: 0
RE: Menghitung Disk Cache (cache_dir) pada Squidproxy
250 G jd berapa jumlah space yg harus di bikin untuk capchay nya? klo 7500 sie bisananya dikasih kerupuk wkwkwkw kabooooooorrrrrrrrrrr
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Ask] ask : cache HTTPS qibo212 18 706 03-18-2013 12:44 AM
Last Post: pn_2727
  Cara mengatasi TCP_MISS pada Squid Ubuntu chibi 7 1,018 08-05-2012 06:48 AM
Last Post: ghosttransparentexceptnofixed
  Solusi PF/NAT Errors pada Squid (FreeBSD) kosim.tampan 4 1,240 08-28-2011 01:36 PM
Last Post: mariachi
  Membersihkan cache proxy (squid pada debian) wahyu_devilzc0de™ 4 4,478 07-22-2011 04:00 AM
Last Post: revanthem
  [Tutor] Blocking MAC address pada Squid chaer.newbie 3 1,511 06-03-2011 11:51 PM
Last Post: easy2study

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-21-2013, 07:17 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE