Linux Performance Hunting Tips - Take Copious Notes (Save Everything) 리눅스의 성능을 사냥 팁 - 새빨간 노트 (할인 금액 전부)을 받아
Probably the most important thing that you can do when investigating a performance problem is to record every output that you see, every command that you execute, and every piece of information that you research. 아마도 가장 중요한 것은 당신이 할 수있는 성능 문제를 조사했을 때 당신이 볼 수있는 모든 출력을 기록하는 것입니다, 당신은 그 모든 명령을 실행하고 정보를 그 연구의 모든 조각. A well-organized set of notes allows you to test a theory about the cause of a performance problem by simply looking at your notes rather than rerunning tests. 잘 - 노트의 구성을 설정하기만하면 노트 rerunning보다는 시험을보고하여 성능 문제의 원인에 대한 이론을 테스트할 수있습니다. This saves a huge amount of time. 이 시간의 엄청난 금액을 절약할 수있습니다. Write it down to create a permanent record. 영구 기록을 만들고 그것을 적어 두십시오.
When starting a performance investigation, create a directory for the investigation, open a new "Notes" file in GNU emacs, and start to record information about the system. 때, 새로운 "노트를 열어 조사를위한 디렉토리 만들기"와 GNU Emacs에서 파일 성능이 수사를 시작하고 시스템에 대한 정보를 기록하기 시작했다. Then store performance results in this directory and store interesting and related pieces of information in the Notes file. 다음이 디렉터리와 저장소 노트에있는 정보의 조각에 성능과 관련된 흥미로운 결과를 저장할 파일입니다. Suggest that you add the following to your performance investigation file and directory: 추가 제안은 자신의 실적을 조사하면 파일 및 디렉토리에 다음과 :
• Record the hardware/software configuration — This involves recording information about the hardware configuration (amount of memory and type of CPU, network, and disk subsystem) as well as the software environment (the OS and software versions and the relevant configuration files). • 기록의 하드웨어 / 소프트웨어 구성 -이 메모리와 CPU, 네트워크, 디스크 서브 시스템의 종류 (금액)뿐 아니라 소프트웨어 환경의 하드웨어 구성에 대한 자세한 내용은 녹음을 포함 (OS 및 소프트웨어 버전 및 관련 구성 파일). This information may seem easy to reproduce later, but when tracking down a problem, you may significantly change a system's configuration. 이 정보는 나중에 복제, 쉽게 보일지 모르지만,이 문제를 추적했을 때, 당신은 크게 시스템의 구성을 변경할 수있습니다. Careful and meticulous notes can be used to figure out the system's configuration during a particular test. 신중하고 꼼꼼하게 메모는 특정 테스트가 진행되는 동안 시스템의 구성을 파악하는 데 사용될 수있습니다.
Example: Save the output of cat /proc/pci, dmesg, and uname -a for each test. 예 :, dmesg, / proc을 /의 PCI 고양이의 출력을 저장하고에는 uname - 각 테스트에 대해.
• Save and organize performance results — It can be valuable to review performance results a long time after you run them. 후에 그들을 실행 • 저장 및 정리 실적 결과 - 성능 결과는 오랜 시간을 검토할 가치가있을 수있습니다. Record the results of a test with the configuration of the system. 시스템의 구성과 테스트의 결과를 기록했다. This allows you to compare how different configurations affect the performance results. 당신은 어떻게 구성이 다른 성능 결과를 비교할 수있습니다 영향을 미칩니다. It would be possible just to rerun the test if needed, but usually testing a configuration is a time-consuming process. 필요한 경우에 재상영 그냥 테스트지만, 가능할 것이 일반적 구성을 테스트 시간 - 소모하는 프로세스입니다. It is more efficient just to keep your notes well organized and avoid repeating work 좀 더 조직 및 반복 작업을 피하기 그냥 메모를 잘 유지하는 효율적입니다
• Write down the command-line invocations — As you run performance tools, you will often create complicated and complex command lines that measure the exact areas of the system that interest you. • 작성해 명령 - 라인 호출 - 다운 성능 도구를 실행하면 종종 복잡하고 복잡한 명령 라인을 만들고 그 시스템의 정확한 측정 분야에 관심이 있으 신가요. If you want to rerun a test, or run the same test on a different application, reproducing these command lines can be annoying and hard to do right on the first try. 재상영 경우, 테스트를 원하거나 다른 응용 프로그램에서 동일한 테스트를 실행하려면 명령 줄을 귀찮을 재현과 오른쪽 첫 번째 시도에서 수행하기 어렵다. It is better just to record exactly what you typed. 조금만 더 정확히 무슨 입력된 기록하는 것입니다. You can then reproduce the exact command line for a future test, and when reviewing past results, you can also see exactly what you measured. 그 다음, 그리고 미래에 대한 정확한 테스트를 재현할 수 명령줄 과거의 결과를 검토했을 때, 당신도 정확히 볼 수있는 당신이 무엇을 측정했다.
• Record research information and URLs — As you investigate a performance problem, it is import to record relevant information you found on the Internet, through e-mail, or through personal interactions. • 기록 연구 정보 및 URL - 성능 문제를 조사로서, 그것을 통해 인터넷에 발견하면 관련 정보를 기록 가져올 전자 - 메일, 또는 개인적인 상호 작용을 통해. If you find a Web site that seems relevant, cut and paste the text into your notes. 만약 자네가 관련성이 없어 보이는 웹 사이트, 컷과 메모에 텍스트를 붙여넣을 찾으십시오. (Web sites can disappear.) However, also save the URL, because you might need to review the page later or the page may point to information that becomes important later in an investigation. (웹 사이트가 사라질 수있습니다.) 그러나, 또한 URL을 저장할 수 있기 때문에 나중에 페이지를 검토하거나 페이지가 나중에 수사에 중요 해지고있습니다 정보를 가리킨해야 할 수도있습니다.
As you collect and record all this information, you may wonder why it is worth the effort. 으로 수집하고이 모든 정보를 기록, 당신은 왜 노력이 가치가 궁금하다 수있습니다. Some information may seem useless or misleading now, but it might be useful in the future. 쓸모없는 일부 정보 또는 오해의 소지가 지금은 보일지 모르지만, 그것은 미래에 유용할 수있습니다. (A good performance investigation is like a good detective show: Although the clues are confusing at first, everything becomes clear in the end.) Keep the following in mind as you investigate a problem: (좋은 성능을 수사 좋은 탐정 보여 같다 : 비록 단서 처음엔 다 결국은 분명해진다 혼동됩니다.) 마음에 당신이 문제를 조사하는대로 다음 계속 :
• The implications of results may be fuzzy — It is not always clear what a performance tool is telling you. 뿌연 수있습니다 결과의 의미 • - 항상 성능 도구를 사용하면이 뭔지 확실하지 않습니다. Sometimes, you need more information to understand the implications of a particular result. 가끔, 특정 결과의 의미를 이해하고 더 많은 정보가 필요합니다. At a later point, you might look back at seemingly useless test results in a new light. 나중에 그 시점에, 당신은 겉보기에는 쓸모없는 새로운 빛 속에서 다시 테스트 결과에서 보면 수도있습니다. The old information may actually disprove or prove a particular theory about the nature of the performance problem. 옛 정보 쓰였다는 사실되거나 성능 문제의 본질에 대한 특정 이론을 증명했다.
• All information is useful information (which is why you save it) — It might not be immediately clear why you save information about what tests you have run or the configuration of the system. ) 유용한 정보 (왜 저장됩니다 모든 정보 • - 그것은 바로 자네가해야 할 일을 왜하거나 시스템의 구성을 실행 테스트에 대한 정보를 저장 명확하게 전달되지 않을 수도있습니다. It can prove immensely useful when you try to explain to a developer or manager why a system is performing poorly. 그것은 대단히하면 개발 자나 관리자는 시스템 실적이 저조한 이유는 설명하려고하면 유용할 수있습니다. By recording and organizing everything you have seen during your investigation, you have proof to support a particular theory and a large base of test results to prove or disprove other theories. 당신의 모든 기록 및 수사 과정에서 보았을 조직함으로써, 당신과 시험 결과의 대규모 기지는 특정 이론을지지하거나 다른 이론을 증명하는 데 쓰였다는 증거를 갖고있다.
• Periodically reviewing your notes can provide new insights — When you have a big pool of information about your performance problem, review it periodically. • 정기적으로 새로운 통찰력을 제공할 수있는 노트를 검토 -하면 성능 문제에 대한 정보의 큰 수영장, 정기적으로 검토합니다. Taking a fresh look allows you to concentrate on the results, rather than the testing. 신선해 보이는받는 당신은 결과에 집중하기보다는 테스트를하실 수있습니다. When many test results are aggregated and reviewed at the same time, the cause of the problem may present itself. 많은 테스트 결과를 집계하고 검토하는 동시에, 문제의 원인 자체가 현재있습니다. Looking back at the data you have collected allows you test theories without actually running any tests. 당신이 수집한 데이터에서 실제로 어떤 테스트를 실행하지 않고 다시 찾는 이론 테스트를하실 수있습니다.
Although it is inevitable that you will have to redo some work as you investigate a problem, the less time that you spend redoing old work, the more efficient you will be. 비록 그것은 당신이, 당신이 된 적은 시간 일을 보내고 아비를 닮지수록 더 효율적으로 문제가 될 몇 가지 작업을 고치겠 조사가 불가 피할 전망이다. If you take copious notes and have a method to record the information as you discover it, you can rely on the work that you have already done and avoid rerunning tests and redoing research. 메모를하면 풍부한 정보를 기록하고 당신이 그것을 발견하는 방법도, 당신은 이미 그 짓을하고 rerunning 실험과 연구 작업에 의존 아비를 닮지는 피할 수있습니다. To save yourself time and frustration, keep reliable and consistent notes. 네, 시간과 좌절을 절약하기 위해 안정적이고 일관성있는 메모를 계속했다.
For example, if you investigate a performance problem and eventually determine the cause to be a piece of hardware (slow memory, slow CPU, and so on), you will probably want to test this theory by upgrading that slow hardware and rerunning the test. 예를 들어, 성능 문제를 조사하는 경우와 결국은 하드웨어의 조각 (느린 메모리, 느린 CPU 및 등등)가되기 위해서는 원인을 파악, 아마도 그 속도가 느린 하드웨어를 업그레이 드하고 테스트 rerunning하여이 이론을 시험하고 싶은 것입니다. It often takes a while to get new hardware, and a large amount of time might pass before you can rerun your test. 종종 새 하드웨어를 얻기 위해 많은 시간과 많은 양의 재상영하기 전에 귀하의 시험을 통과할 수있을 걸려요. When you are finally able, you want to be able to run an identical test on the new and old hardware. 마침내하면하실 수있다면, 당신이 원하는 신규 및 기존의 하드웨어에 동일한 테스트를 실행할 수있습니다. If you have saved your old test invocations and your test results, you will know immediately how to configure the test for the new hardware, and will be able to compare the new results with the old results that you have stored. 만일 당신의 나이 테스트 호출하여 테스트 결과를 구해 가지고, 귀하는 즉시, 그리고 당신이 저장된 이전 결과와 함께 새로운 검색 결과를 구성하는 방법을 비교할 수있게된다 새로운 하드웨어에 대한 테스트를 알게 될 것이다.
Source of Information : Optimizing Linux® Performance 정보의 출처 : 리눅스 ® 성능 최적화
Written by magakos. magakos 지음. Read more great feeds at is source 읽기에서 더 많은 훌륭한 피드 소스입니다 WEBSITE 웹사이트
no comments 덧글 없음 . .
Read more articles on 에 대한 자세한 기사를 읽기 otherSoftware otherSoftware and 및 Linux 리눅스 . .
- [+] Digg [+] 디그 : Feature this article :이 문서는 기능
- [+] Del.icio.us [+] Del.icio.us : Bookmark this article : 북마크이 문서
- [+] Furl [+] Furl : Bookmark this article : 북마크이 문서















