While administrating a box, you may wanted to find out what a processes is doing and find out how many file descriptors (fd) are being used. You will surprised to find out that process does open all sort of files: => Actual log file The best way to find out this information is use lsof command or explore /proc/PID directory for each running processes (including kernel processes), containing information about that process. Let us find out PID for mysqld process Use lsof command or /proc/PID file system to display fd lists: /proc (or procfs) is a pseudo-file system that it is dynamically generated after each reboot. It is used to access kernel information. procfs is also used by Solaris, BSD, AIX and other UNIX like operating systems. So now you know how many file descriptors are being used by a process. You will find more interesting stuff in /proc/PID directory. For example: As you see, /proc is an essentials file system for admin work. Just browser through our previous article to get more information about /proc:
=> /dev files
=> UNIX Sockets
=> Network sockets
=> Library files /lib /lib64
=> Executables and other programs etcStep # 1 Find out program PID
# ps aux | grep mysqld
OR# pidof mysqld
Output:
28290
Step # 2 List file opened by pid 28290
# lsof -p 28290
OR# cd /proc/28290/fd
# ls -l | less
You can count open file, enter:# ls -l | wc -lMore about /proc/PID & procfs
本日志由 flyinweb 于 2010-12-22 09:54:15 发表,目前已经被浏览 2886 次,评论 0 次;
作者添加了以下标签: file descriptors;
引用通告:http://www.517sou.net/Article/551/Trackback.ashx
而且直接配置文件是效率最高的,通过其它驱动效率都相对较低,BDB
这个测试不太准确,看官方的测试结果:http://bind-dlz.sourceforg
为什么使用BDB时QPS这么低? 我在bind版本基本相似的环境中测试的
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱