I'm trying to record metrics for an application called memcached. The procedure that I followed is:
1) Start the server using this command:
2) Start the client using this command (after warming up the server):
3) Now after the connection is established, I'm now trying to record the metrics using this command:
Explanation of perf command that I'm using:
This will record metric - cycles for the server memcached for 1 second.
But I'm getting weird results from the above command. I think that pid that I'm catching is not the full load of the server. I'm getting the results in order of 100's which seems weird. Can anyone please suggest any alternative method to overcome this (or what am I doing wrong here)?
I'm not able to run perf on linux 4.4. I'm using ubuntu 15.10.
The error I'm getting is:
WARNING: perf not found for kernel 4.4.0
You may need to install the following packages for this specific kernel: linux-tools-4.4.0-4.4.0 linux-cloud-tools-4.4.0-4.4.0
You may also want to install... (4 Replies)
Hi,
I am trying to find the number of cache misses that are caused by my code. The best way I could find was to use the perf command. After running command: perf stat dd if=/dev/zero of=/dev/null count=100, the output I got is:
1.812057 task-clock-msecs # 0.876 CPUs
... (0 Replies)
Hi All,
I am running the script
VBoxManage list vms |sed 's/"//g' | cut -d " " -f1 > har1out.mytxt
result=`cat har1out.mytxt | grep $1'
echo $result
echo $1
{
if
then
echo pass
else
echo fail
fi (2 Replies)
Hello,
Is there any method thorugh which script can take argument if pass otherwise if argument doesn't pass then it takes the argument from the configuration file
i.e I am workiing on a script which will run through crontab and the script will
chekout the code ,zip and copy to the... (3 Replies)
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
Can someone please help me with this SHELL script?
I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words, it must calculate n!=1x2x3x...xn. Note that 0!=1.
Here is a start but I have no clue how to... (3 Replies)
I'm looking for a good Solaris performance monitoring book. I work primarily with Solaris 9, but will also be working with 10, so a dtrace chapter would also be good. Any insight would be much appreciated. (4 Replies)
Hi! I ran into a problem with a job I'm running. All it is doing is a "touch" on a filename. However, when I ran the job, it error'd out and got the message 'cannot stat'. When I restarted the job (making no changes) it worked just fine. Anyone know what this means? (1 Reply)