Linux Performance Hunting Tips - Take Copious Notes (Save Everything) Linux prestazioni caccia Suggerimenti - Prendere appunti abbondante (Salva tutto)
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. Probabilmente la cosa più importante che si può fare quando si tratta di un problema di prestazioni è quello di registrare ogni uscita che si vede, ogni comando che si esegue, e ogni pezzo di informazioni che si ricerca. 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. Una ben organizzata serie di note vi permette di testare una teoria circa la causa di un problema di prestazioni semplicemente guardando i tuoi appunti, piuttosto che ripetere le prove. This saves a huge amount of time. Ciò consente di risparmiare un'enorme quantità di tempo. Write it down to create a permanent record. Scrivi a creare una registrazione permanente.
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. Quando si avvia una performance di indagine, creare una directory per l'inchiesta, aprire un nuovo "Note" il file in GNU Emacs e iniziare a registrare informazioni sul sistema. Then store performance results in this directory and store interesting and related pieces of information in the Notes file. Quindi memorizzare i risultati delle prestazioni in questa directory e memorizzare interessante e relativi pezzi di informazioni nelle Note di file. Suggest that you add the following to your performance investigation file and directory: Suggeriscono che è possibile aggiungere quanto segue al vostro rendimento di indagine file e 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). • Registrare la configurazione hardware / software - Si tratta di registrazione delle informazioni fornite circa la configurazione hardware (quantità di memoria e il tipo di CPU, rete e disco sottosistema), nonché l'ambiente software (sistema operativo e le versioni software e le file di configurazione). This information may seem easy to reproduce later, but when tracking down a problem, you may significantly change a system's configuration. Queste informazioni possono sembrare facili da riprodurre più tardi, ma quando il monitoraggio di un problema, è possibile modificare in maniera significativa un sistema di configurazione. Careful and meticulous notes can be used to figure out the system's configuration during a particular test. Attenta e meticolosa note possono essere utilizzati per capire la configurazione del sistema nel corso di un test del tutto particolare.
Example: Save the output of cat /proc/pci, dmesg, and uname -a for each test. Esempio: Salvare l'output di cat / proc / pci, dmesg, e uname-uno per ciascuna prova.
• Save and organize performance results — It can be valuable to review performance results a long time after you run them. • Salvare e organizzare i risultati delle prestazioni - che può essere prezioso per esaminare i risultati delle prestazioni molto tempo dopo la loro esecuzione. Record the results of a test with the configuration of the system. Registrare i risultati di un test con la configurazione del sistema. This allows you to compare how different configurations affect the performance results. Questo ti permette di confrontare diverse configurazioni come influire sulle prestazioni risultati. It would be possible just to rerun the test if needed, but usually testing a configuration is a time-consuming process. Sarebbe possibile solo per eseguire nuovamente il test, se necessario, ma di solito una configurazione di prova è un tempo di processo. It is more efficient just to keep your notes well organized and avoid repeating work E 'più efficiente solo per mantenere i tuoi appunti ben organizzato ed evitare di ripetere il lavoro
• 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. • Scrivere la riga di comando invocazioni - Come si esegue il rendimento degli strumenti, si creano spesso complicate e complesse righe di comando che misura l'esatta aree del sistema che ti interessano. 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. Se si desidera eseguire nuovamente il test, oppure esegui la stessa prova su una diversa applicazione, che riproduce queste righe di comando può essere noioso e difficile da fare sulla destra al primo tentativo. It is better just to record exactly what you typed. E 'meglio limitarsi a registrare esattamente ciò che hai digitato. 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. È quindi possibile riprodurre l'esatta riga di comando per un futuro di prova, e in sede di revisione ultimi risultati, è anche possibile vedere esattamente che cosa misurata.
• 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. • Registrare le informazioni sulla ricerca e URL - Come è indagare su un problema di prestazioni, è l'importazione di registrare le informazioni che avete trovato su Internet, tramite e-mail, o attraverso le interazioni personali. If you find a Web site that seems relevant, cut and paste the text into your notes. Se si trova un sito Web che sembra pertinente, tagliare e incollare il testo nel tuo note. (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. (Siti Web possono scomparire.) Tuttavia, è anche possibile salvare l'URL, perché si potrebbe aver bisogno di rivedere la pagina successiva o alla pagina mag punto di informazione che più tardi diventa importante in un inchiesta.
As you collect and record all this information, you may wonder why it is worth the effort. Come è raccogliere e registrare tutte queste informazioni, è possibile chiedersi il motivo per cui ne vale la pena. Some information may seem useless or misleading now, but it might be useful in the future. Alcune informazioni può sembrare inutile o fuorviante, ma può essere utile in futuro. (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: (Un buon rendimento inchiesta è come un buon detective mostra: Anche se gli indizi sono confusa in prima, tutto diventa chiaro alla fine.) Tenere in considerazione i seguenti in mente come si indagare un problema:
• The implications of results may be fuzzy — It is not always clear what a performance tool is telling you. • Le implicazioni dei risultati possono essere fuzzy - Non è chiaro cosa semper una performance strumento si sta dicendo. Sometimes, you need more information to understand the implications of a particular result. A volte, avete bisogno di ulteriori informazioni per capire le implicazioni di un particolare risultato. At a later point, you might look back at seemingly useless test results in a new light. In un secondo punto, si potrebbe guardare indietro a apparentemente inutili i risultati delle prove in una nuova luce. The old information may actually disprove or prove a particular theory about the nature of the performance problem. Il vecchio informazioni possono effettivamente dimostrare o confutare una particolare teoria sulla natura delle prestazioni problema.
• 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. • Tutte le informazioni sono le informazioni utili (che è il motivo per cui si salva) - Potrebbe non essere immediatamente chiaro il motivo per cui si salvare le informazioni su ciò che avete prove o eseguire la configurazione del sistema. It can prove immensely useful when you try to explain to a developer or manager why a system is performing poorly. Essa può rivelarsi estremamente utile quando si tenta di spiegare a uno sviluppatore o il motivo per cui un gestore di sistema è il rendimento del male. 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. Con la registrazione e l'organizzazione di tutto ciò che avete visto durante la vostra inchiesta, lei ha la prova a sostegno di una particolare teoria e una grande base dei risultati dei test per provare o confutare altre teorie.
• Periodically reviewing your notes can provide new insights — When you have a big pool of information about your performance problem, review it periodically. • rivedere periodicamente i tuoi appunti in grado di fornire nuove prospettive - Quando si ha una grande piscina di informazioni sulle vostre prestazioni problema, esaminare periodicamente. Taking a fresh look allows you to concentrate on the results, rather than the testing. Assunzione di un cambio di look vi permette di concentrarsi sui risultati, piuttosto che per le prove. When many test results are aggregated and reviewed at the same time, the cause of the problem may present itself. Quando molti risultati dei test sono aggregati e rivedute allo stesso tempo, la causa del problema può presentarsi. Looking back at the data you have collected allows you test theories without actually running any tests. Guardando indietro a dati che sono stati raccolti permette di testare le teorie effettivamente in esecuzione senza alcun test.
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. Anche se è inevitabile che si dovrà rifare un po 'di lavoro come lei indagare un problema, meno tempo che si spende rifare vecchi lavori, il più efficiente sarà. 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. Se prende copiosa note e sono un metodo per registrare le informazioni di scoprire come lei, è possibile fare affidamento per il lavoro che avete già fatto e per evitare di ripetere i test e rifare la ricerca. To save yourself time and frustration, keep reliable and consistent notes. Per salvare il tempo e la frustrazione, mantenere affidabile e coerente note.
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. Ad esempio, se si indagare su un problema di prestazioni ed eventualmente determinare la causa di un pezzo di hardware (memoria lenta, lenta della CPU, e così via), è probabilmente vorranno provare questa teoria con l'aggiornamento hardware che lenta e rieseguire la prova. It often takes a while to get new hardware, and a large amount of time might pass before you can rerun your test. E 'spesso un po' di tempo per acquistare nuovo hardware, e una grande quantità di tempo potrebbe passare prima di poter eseguire nuovamente il test. When you are finally able, you want to be able to run an identical test on the new and old hardware. Quando si sono finalmente in grado, che si desidera essere in grado di eseguire un test identico sul nuovo e vecchio 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. Se hai salvato il tuo vecchio prova invocazioni e il test dei risultati, saprete immediatamente come configurare il test per il nuovo hardware, e sarà in grado di confrontare i nuovi risultati con i vecchi risultati che avete memorizzato.
Source of Information : Optimizing Linux® Performance Fonte delle informazioni: Ottimizzare le prestazioni di Linux ®
Written by magakos. Scritto da magakos. Read more great feeds at is source Per saperne di più grande al feed è fonte WEBSITE SITO WEB
no comments nessun commento . .
Read more articles on Per saperne di più articoli su otherSoftware otherSoftware and e Linux Linux . .
- [+] Digg [+] Digg : Feature this article : Feature questo articolo
- [+] Del.icio.us [+] Del.icio.us : Bookmark this article : Aggiungi ai preferiti questo articolo
- [+] Furl [+] Furl : Bookmark this article : Aggiungi ai preferiti questo articolo















