Increase File Descriptor di OpenBSD
Untuk dapat mengakses dan mengubah isi file, kita membutuhkan sebuah file descriptor. File descriptor adalah suatu variabel yang digunakan untuk mewakili file tertentu.
tambahkan ke file konfigurasi kernel :
option MAXFILES=8192
kompilasi ulang kernel,
tambahkan option :
:openfiles-max=infinity:\
ke /etc/login.conf bagian daemon
reboot
reinstall squid dengan tambahan option configure --with-maxfd=8192
August 16, 2008 at 11:54 pm
Mas mau tanya nih..saya udah compile kernel dg tambahan option MAXFILES=8192 dan compile squid dg tambahan option –with-maxfd=8192, terus di /etc/login.conf juga sudah ditambahkan…tapi setelah squid dijalankan saya cek dg mgr:info >>file descriptor cuma 128 File descriptor usage for squid:
Maximum number of file descriptors: 128
Largest file desc currently in use: 109
Number of file desc currently in use: 49
ada pertanyaan satu lagi ini penyebabnya apa yaa? saya udah googling dan berusaha memperbaiki tp tetep keluar Page faults with physical i/o: 99
dimana value selalu bertambah ? kenapa ya?
note: /cache <<< HD terpisah dg OS
..makasih sebelumnya.
August 17, 2008 at 3:40 am
@ali
file descriptor = coba squid nya diinstall ulang, maksudnya configure squid nya setelah merubah parameter tersebut
page fault = A page fault occurs when the program needs to access an area of memory that was swapped to disk…..
http://www.onlamp.com/pub/a/onlamp/2004/03/25/squid.html
August 18, 2008 at 4:55 am
Saya udah configure ulang squidnya, tetapi masih sama aja
File descriptor usage for squid:
Maximum number of file descriptors: 128
Largest file desc currently in use: 81
Number of file desc currently in use: 51
Files queued for open: 0
Available number of file descriptors: 77
Reserved number of file descriptors: 32
Store Disk files open: 0
Ini output dari #sysctl -a |grep maxfiles
kern.maxfiles=8192
masalah ini terjadi setelah saya upgrade ke 4.3
kemaren sebelum upgrade ( menggunakan OpenBSD 4.2) ga ada mslh dg file descriptors. Jadi penasaran ??