Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [profiling]

The tag has no usage guidance.

0
votes
0answers
22 views

Identify Resource Usage of a Process: CPU, Memory and I/O [duplicate]

I need to request some AWS resources and in order to do so, I need to identify what are my requirements for: Number of CPU cores (maybe GPUs as well) (performs parallel processing) Amount of Memory ...
3
votes
0answers
26 views

Perf Tool monitoring by PID

I'm using linux perf tool to monitor the performance of some processes. The documentation tells that you can flag it to collect profiles on per-thread, per-process and per-cpu basis. I get that the ...
1
vote
0answers
25 views

How can I pause/suspend a running valgrind (with callgrind) instance?

I have some rather chunky piece of software being profiled via valgrind --tool=callgrind MySoftware (bash at Ubuntu 16.04 if it makes any difference). It was running overnight, but still hasn't ...
0
votes
0answers
5 views

Why latest version of sys-stat not showing average values after kill..?

The old output from my logs which showing Avg values after ctrl+c #pidstat 1 -p `pgrep bgpd` Linux 3.16.7-gd1a374d-dellz9100on (rtr1) Tuesday 29 May 2018 _x86_64_ (4 CPU) 05:07:01 ...
1
vote
0answers
31 views

How can I find the deepest and most stack-hungry call chains in a program?

I have a program written in OCaml that tends to stack-overflow on platforms with small stacks. Rather than ulimiting the program to find and solve stack overflows one by one, I'd like to get a sorted ...
0
votes
0answers
122 views

How can I run nvidia nsight profiler in arch linux?

I really need to profile an opengl application and nvidia nsight seems like the best possible solution. It's available for a lot of distributions but not arch (not even in the AUR). Can I somehow run ...
2
votes
0answers
81 views

How can I tell if my GPU is a bottleneck?

I already know of utilities like htop that can be used to (roughly) tell if a process is primarily bottlenecking at disk read/write speeds, network IO, not being parallel, or being parallel but ...
1
vote
1answer
1k views

Faster startup of zsh [closed]

I love tmux, but whenever I need to create a split with a new pane or a new window it has to run my zsh init scrips and .profile, etc. And they take about a few seconds to run. Initializing stuff like ...
1
vote
1answer
208 views

Trying to decode mp3 file on NVIDIA Tesla K20c GPU on RHEL 6.6

I am trying to use mpg123 to play a mp3 file but am struggling to do it on a GPU. Upon doing a lot of research, the closest command I found for my requirement was: mplayer -vo vdpau and -vc ...
-1
votes
1answer
279 views

What is the Linux equivalent of Mac OS X's “Sample Process”?

On Mac OS X, you can "sample" a process, which takes a backtrace of every thread in a specified process a specified number of times and then displays what methods are running (Apple man page, example ...
3
votes
1answer
656 views

Record time of every process or thread context switch

I'm trying to get the nearest to real-time processing I can with a Raspbian distribution on a Raspberry Pi for manipulating its GPIO pins. I want to get a "feel" for the kind of performance I can ...
2
votes
1answer
41 views

performance comparison of multiple commands excutions

I've got three different programs written in three different languages, and I'm trying to compare their performance in terms of runtime, and memory consumption. What I'm looking for is some command ...
1
vote
0answers
73 views

Performance problem Fedora 23 32-bit @ Dell D630 4GB/Nvidia

I have installed Fedora 23 32-bit at Dell D630 4GB with NVidia Quattro NVS 135M (nvidia.ko, not nouveau.ko). And I have permanent performance problem as X-Windows (Gnome) are very slow and laggy. I ...
2
votes
0answers
157 views

Benchmarking under SELinux Sandbox with Phoronix Test Suite

I would like to run the Phoronix Test Suite 6.2.2 under the SELinux sandbox on Fedora 23, but I can't execute it using $ sandbox ./phoronix-test-suite. I probably don't have the correct SELinux type. ...
1
vote
0answers
149 views

CPU usage according to ps and operf

I've acquired some data seemingly in conflict from two sources one would assume are reliable. In all likelihood, I'm misreading one of the sources. The server environment is: Ubuntu 14.04.2 LTS, 3.13....
-4
votes
1answer
992 views

How to determine the CPU time of the execute of Makefile in linux or Unix? [closed]

below is my Makefile using to execute my numerical code.I would like to know the time taken by the CPU to execute these C programmes. #Makefile LDFLAGS = -DN_DIM=3 #LDFLAGS = -DN_DIM=3 -...
7
votes
1answer
688 views

How to get the GPU execution time of a script in the shell?

I would like to display the completion time of a script, in terms of GPU time (not CPU). For the CPU, I can simply use time: francky@gimmek80s:~$ time ls -l total 8 drwxrwxr-x 3 francky francky 4096 ...
4
votes
0answers
460 views

Memory consumption over variable period of time

There are a number of questions on this StackExchange about memory consumption, notably: How to check which process is using most memory How to display top results sorted by memory usage in real ...
2
votes
0answers
498 views

Print kernel memory layout

Userland memory layout can be inspected by looking into /proc/self/maps. I am wondering if there is a similar facility allowing to inspect runtime kernel memory layout?
2
votes
0answers
74 views

Which process wrote to which memory address? [closed]

Recently, I've been seeing a wide variety of memory-related crashes at work (C++ applications on Ubuntu 14.04). Our applications use a properietary third party library to interface with real time data ...
1
vote
0answers
559 views

How can I find which process is eating my memory? [duplicate]

My Linux system sometimes reaches 90% memory usage. We are running some Java processes, and top shows overall usage as 45%. If I stop the running processes, usage reduces to 5-10%. I want to list ...
1
vote
0answers
663 views

Profiling memory, disk, cpu, and time from python

I have a workflow, implemented in python, and I would like to profile memory, disk (IO), cpu, and time information in python in an unobtrusive manner. This is NOT a question of profiling code, but ...
5
votes
1answer
434 views

Is there a mock program that uses the CPU on multiple cores?

I am playing around with htop, gprof, etc. I'd like a program that basically just runs on multiple cores so I can profile it and learn how to use these tools. I know I can write my own c++ code with -...
1
vote
1answer
904 views

Difference between maximum resident set size as reported by /usr/bin/time vs. getrusage?

I ran the command a.out like this: $ /usr/bin/time -f"%M" ./a.out a.out also uses the function getrusage() and prints: printf("%ld",ru.ru_maxrss); where the first ru is the struct. When I run it,...
3
votes
1answer
52 views

program executing for 2 days

I have a java program which implements the Hungarian algorithm. I made changes to the existing code in such a way that the input is read from file. I have a pretty huge input around 32,000 rows for ...
1
vote
1answer
380 views

Does perf includes some “graphing” abilities?

It's possible to create a bitmap or a vector image out of the data collected by the perf profiler under linux ?
3
votes
0answers
595 views

What is the difference between the output of TOP command and Oprofile?

In the top command one of the processes is always showing a CPU usage of 4 to 5%. But in oprofile the CPU usage is 0.004%. I do not understand this. And I also noticed that even when a process is in ...
3
votes
1answer
2k views

Understanding Perf tool output

I recently installed Perf tool On my platform and wanted to use it for profiling my platform. I started profiling a standalone application. Below is the command I used: perf start ./helloworld ...
6
votes
5answers
2k views

Run program at lower CPU speed?

It would be very useful for me to run specific programs in a Linux environment with a fixed (lower) CPU clock speed (say, runat 400mhz ./my-program --argument-of="my program" for getting that clock ...
7
votes
1answer
150 views

Time all executions in bash [duplicate]

Is there a way to run all commands in bash as if they were invoked with time in front? I want that I could type $ some_command and this will actually invoke $ time some_command.
31
votes
3answers
36k views

Determining Specific File Responsible for High I/O

This is a simple problem but the first time I've ever had to actually fix it: finding which specific files/inodes are the targets of the most I/O. I'd like to be able to get a general system overview, ...
1
vote
1answer
221 views

Establishing I/O Patterns for an Application

Are there any system tools that allow you to profile an application's usage of storage? Basically, I'm looking for information on determining whether there are more large sequential reads, tiny ...
11
votes
2answers
382 views

Locate occasional CPU kernel hog

I have a 2.6.35 PREEMPT kernel running on moderate-speed ARMv7 processor. About once every 100 - 125s, something causes the kernel to fail to process some audio-related drivers sufficiently quickly to ...
1
vote
1answer
292 views

Where is the documentation for perf events?

I cant seem to find documentation on the events listed when you do perf list; can someone point me in the right direction?
1
vote
1answer
615 views

Where to start profiling Linux kernel?

What are the standard and conventional ways of profiling the Linux kernel? I know there is perf tool but is there anything else?
237
votes
13answers
326k views

How to get execution time of a script effectively?

I would like to display the completion time of a script. What I currently do is - #!/bin/bash date ## echo the date at start # the script contents date ## echo the date at end This just show's ...
4
votes
1answer
371 views

Linux mutex spins [closed]

On Solaris I can use mpstat to see the smtx (i.e., spins on mutex or in other words locks not acquired on the first try) value. This value increasing indicates that swap is being hit too frequently ...
6
votes
2answers
4k views

Detailed Per-Process Profiling

I am looking for a way to profile a single process including time spent for CPU, I/O, memory usage over time and optionally system calls. I already know callgrind offering some basic profiling ...
2
votes
1answer
241 views

How to find what's hogging what resources? [closed]

I've found lots of similar questions, but nothing that's exactly right. I'm trying to figure out what's making one server run slower than another. I'm hoping for something that would say something ...
2
votes
1answer
949 views

How to get the maximum virtual set size of a unix process during its lifetime?

The time command includes a format parameter "M", which according to the time man page on Linux is used for the following: Maximum resident set size of the process during its lifetime, in Kilobytes. ...
0
votes
2answers
1k views

buildroot/busybox: launch bootchartd on startup

I built a custom linux image using buildroot and busybox. To speed up the boot process I'd like to use bootchartd (built-in version of busybox) to profile the process. However bootchartd is not ...
5
votes
4answers
4k views

How can I profile a shell script?

I have several programs that I'm executing in a shell script: ./myprogram1 ./myprogram2 ... I know that I can profile each individual program by editing the source code, but I wanted to know if ...
11
votes
2answers
2k views

How to make linux 'perf record' work for libc and libstdc++ symbols?

I'm using perf record -g on x86-64 Linux to profile a program. Several symbols in libc or libstdc++ have 0 as a parent: __GI___strcmp_ssse3 (libc) and strcmp@plt (libstdc++) for example. (I can ...
7
votes
3answers
1k views

What are some good profiling tools for Linux?

I'm looking for some good profiling tools for Linux like OProfile. What I would like to see is how the operating system manages the interrupts, cache, read/writes, etc (lots of other intricate ...
9
votes
3answers
6k views

Command to measure TLB misses on LINUX?

Could some one direct me to a command to measure TLB misses on LINUX, please? Is it okay to consider (or approximate) minor page faults as TLB misses?
3
votes
2answers
1k views

Measuring last-level cache misses through PAPI on AMD machine running Ubuntu Linux

It looks like by default PAPI (Performance Application Programming Interface) is not supporting to measure last-level cache misses (L3) on my AMD machine running Ubuntu Linux. However, I can measure ...
3
votes
2answers
3k views

How to analyze profile data from `perf record --a` (system-wide collection)?

I am using perf from linux-2.6.36-gentoo-r4. The /proc/sys/kernel/perf_event_paranoid is set to 0, so there should be no problems from there. Because long-running application I am profiling ...
10
votes
3answers
2k views

Detect if an ELF binary was built with gprof instrumentation?

Is it possible to check if given program was compiled with GNU gprof instrumentation, i.e. with '-pg' flag passed to both compiler and linker, without running it to check if it would generate a gmon....
3
votes
1answer
148 views

sources for doing profiling of kernel portions?

Related to my previous post. I did not find any specific driver for which I can do profiling and benchmarking. However there is a one driver jffs2 filesystem for flash devices but I didn't know about ...