TAILIEUCHUNG - Pro PHP Application Performance Tuning PHP Web Projects for Maximum Performance phần 9

ở cấp độ yêu cầu để bạn có thể xác định tác động của việc thực hiện các ứng dụng của bạn, và cho dù bạn nên tránh việc sử dụng các chức năng được cung chương 3, bạn thấy làm thế nào sử dụng các chức năng require_once giới thiệu cuộc gọi bổ sung cho các hệ điều hành "lstat" chức năng, | CHAPTER 8 DATABASE OPTIMIZATION The first useful bit of information is the first part of the top display for this server. It tells us more about how much load is on the server if it is swapping and how much of the total memory the mysqld process is using Figure 8-4 . top - 09 38 13 up 235 days 2 39 1 user load average Tasks 69 total 1 running 65 sleeping 0 stopped 3 zombie Cpu s us sy ni id wa hi si st Mem 17927580k total 17851776k used 75804k free 185020k buffers Swap 0k total 0k used 0k free 4989364k cached PID USER PR NI VIRT RES SHR S CPU MEM TIME COMMAND 16570 mysql 15 0 11g 6032 S 9 3567 29 mysqld 1 root 15 0 10304 800 672 S 0 0 init Figure 8-4. Top command output for a moderately loaded MySQL server From the information just shown we can see that the server is not particularly loaded. The load factors are only and which is very low for the load on this machine. The machine is not swapping at all and the CPU and memory usage for mysqld are 9 percent and 66 percent respectively again very good. It is not taking up much CPU and it s using a reasonable amount of the system memory. If the system had been using excessive CPU or memory swapping we would focus our attention on reducing the maximum memory footprint of MySQL to prevent the overflow. This particular server is fitted with of RaM. Now let s look at the I O performance using the iostat tools. iostat should be installable from your distribution s software repositories and should be available on all distributions. We will use it with the -d -c and -x options which enable device CPU and extended stats. Figure 8-5 shows the output that is produced when running iostat against our example server. iostat -d -c -x 2 Linux db64 Wednesday 03 November 2010 avg-cpu user nice system iowait steal idle Device rrqm s wrqm s r s w s . await svctm util sda1

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.