The speed at which a program runs

learn more… | top users | synonyms (1)

0
votes
0answers
11 views

How to I get dstat to report totals for each minute?

I recently discovered dstat but I am surprised that it seems that when it gives reports for another time interval it does not measure the totals for them. Have a look root@zeus:~# dstat -tdD ...
1
vote
1answer
30 views

If tmpfs has bigger size than your RAM, how much RAM does it use? Are applications privileged for RAM?

If there is more tmpfs configured than the size of RAM, and there is a lot of stuff stored there in the tmpfs, how is the amount of RAM available to applications determined? If applications need more ...
0
votes
0answers
31 views

Nginx Performance Monitoring: How to collect CPU, Memory and Disk Utilization data?

I'm relatively new to shell programming and I need to collect statistical data on nginx web server performance running on Linux VMs for further analysis. I have checked some tools and I find dstat ...
3
votes
2answers
23 views

Piped commands performance in embedded Linux

Recently, we purchased a software solution to integrate into a device we're developing. There's plenty we need to modify and adapt to our needs, so today I was going through part of the code to see ...
1
vote
0answers
18 views

Process stuck in kernel code, what is it doing? [closed]

I have a process (db_add) which is stuck is kernel code. This process is the only ressource-intensive process running on the machine. Top reports a 100% (ie it fully uses a single core) CPU usage: ...
3
votes
1answer
68 views

performance regarding “find” arguments' orders

I'm curious whether there are some distinguishing performance differences with different filtering orders when using GNU find. For example, I hope to search all directories in current path whose ...
0
votes
1answer
84 views

How do you make apt-get install faster? [closed]

I just installed Debian for the first time in a virtual-machine (I have used centos/RHEL/fedora for the last 11 years so I have some Linux experience). I did an apt-get install gcc... the command took ...
1
vote
1answer
39 views

Read ahead setting on Solaris

How to get the current read ahead setting on Solaris? On Linux it can be retrieved like this: # echo $(($(blockdev --getra /dev/sda)*512/1024)) (Assuming that blockdev always returns the read-head ...
0
votes
2answers
35 views

Resource usage (% CPU) for given command on OS X

The time -v command outputs % CPU utilization for a given command on Linux. How do I do this on OS X? The Linux/OS X difference is illustrated here. I would like to measure multi-core utilization ...
1
vote
0answers
59 views

RHEL 7 Still CPU Frequency Scaling

When machine is imaged with: RHEL6.x CPU speeds report full 3.3Ghz speed for all CPUs cpupowerutils is not installed RHEL7.x CPU speeds vary (shown in example below) cpupowerutils is installed ...
0
votes
1answer
17 views

Restore boot parameters to default value Linux

I feel my system is getting slower and slower. I am using Ubuntu and my machine is HP ProBook 450 i7 4x2.0GHz, 8GB RAM and an optical HD. Still it takes ~2 minutes to boot, which in my opinion is way ...
1
vote
1answer
34 views

Characterizing iptables impact

Circumstances force us to open a port to the internet and we want to set up a "white list" of IP ranges that are allowed to access that port. I have prototyped the solution so I understand the ...
0
votes
1answer
71 views

string fill performance in shell scripts: what is the best amount and for what shell?

I was trying to determine the best performance for string fill like in: str+="A" #one per loop I came with this script for bash: #!/bin/bash bReport=false nLimit=${1-3000}; #up to 25000 echo ...
0
votes
0answers
40 views

How can I prevent my browser from hogging all system resources?

I'm using a laptop, with a reasonable (though not stellar) CPU and memory. I run Lubuntu 15.10 on it, to be resource-conservative. Still, when I have a browser - specifically, Mozilla Firefox, but I'm ...
0
votes
0answers
33 views

LVM Logical Volume (linear) best performance

As a system administrator, one thing I do very often is increase LV's size. In most cases I have to extend first the VG, adding a new disk (we are talking about virtual machines). I have got a lot of ...
0
votes
1answer
34 views

sed: multiple ranges between patterns, with one pass

I have a script that reads a file of about 3GB and sends it through a pipeline involving a very small number of replacements in a very small part of the file. To accomplish this with minimal overhead, ...
1
vote
0answers
42 views

Reducing Number of MariaDB/MySQL Threads

So I'm running a MariaDB 10 database on a single core server; not super powerful, but then my needs aren't huge either. However, one thing I've noticed is that if I look in htop I have around 28 ...
2
votes
1answer
93 views

Check if partitions are aligned properly for performance?

I just created a GPT disk label for the entire space on my hard disk (/dev/sda) like so: # parted (parted) select /dev/sda (parted) mklabel gpt Warning: The existing disk label on /dev/sda will be ...
0
votes
2answers
24 views

How to find out contention

I'm looking for an easy tool, to graphically show the amount of resources being used realtime. Something like htop but with disk IO, memory and network usage as well. I tried ganglia and the fact ...
1
vote
0answers
17 views

What can interrupt execution of threads which are pinned to cores?

I do low-latency application development and I use isocpu and set thread affinity to reduce (eliminate?) context switching during my critical threads. However, I am unsure what other types of ...
1
vote
0answers
50 views

Debugging Slow Queries in MariaDB/MySQL

I've set up a MariaDB server and everything is running well, with most queries executing in well under 20 milliseconds, but every so often a query will take half a second or longer (sometimes several ...
0
votes
0answers
34 views

spstack, ptrace stopped a process

My server is busy with sys CPU, so I used pstrace to trace it but no output, so I cancel the command inside putty, and then use pstack to trace it again, but no result return either and I closed the ...
0
votes
2answers
58 views

how to delete larger file (e.g., 180G) in unix system?

Because of some reasons, my server machines had some too-large files (e.g.,:180G), How can I delete these files quickly?
0
votes
0answers
42 views

Linux huge IOPS difference - same disks

I've been investigating for some time regarding some IOPS issues I've been experiencing.. And my mind is getting crazy! I have two servers (one bought 2 weeks ago, another 1.5 years ago) that I ...
2
votes
0answers
33 views

Is “top” accounting for Kernel Interrupts?

I have a simple interrupt that is triggered by a GPIO-input. The IRQ only increments a variable and returns. When I turn the frequency of the interrupts up to somewhere around 10-20 kHz, the system ...
1
vote
2answers
114 views

How to call bash function from within awk?

This is a bit tricky; I'm trying to work out the best approach to this problem. I have a couple of approaches, but they seem really hacky and I'd like something a little more elegant. I want to ...
0
votes
1answer
24 views

How can I improve performance using a system remotely via SSH?

I know I can use compression with the flag -C. Any other ideas? Also, besides my internet connection (which I think is fairly fast), what could be causing the network to slow down?
0
votes
0answers
17 views

Poor hard disk read perfomance, but not with O_DIRECT

Since a few days my vps, which supposedly mounts a SSD disk, has been showing a very poor disk read performance. For example, with hdparm -t I get numbers around 20MB/s, while hdparm -t --direct shows ...
2
votes
1answer
28 views

Find process that stalls apache

I'm programming a PHP web page and I started seeing some strange behavior on my computer, at some point apache / php takes to long to show the webpage on the browser (8 secs), first i thought it was ...
0
votes
3answers
70 views

CPU > 80% - how can I debug?

I am running a laravel application on a Ubuntu 14.04 digital ocean vps and I am using New Relic to monitor the server. I got an email alert that my CPU usage was above 80%. I logged in to New Relic ...
1
vote
0answers
33 views

Why does flood ping to localhost result in lower RTT's?

I used ping to do an estimate of lower bound for HTTP request times as part of a feasibility study. In order to make the test faster I lowered the interval of the ping (to get enough pings to get a ...
2
votes
2answers
27 views

What tools can I use to diagnose the exact reason for laptop slowness? And how do I use those tools?

I am running Linux Mint 17 on my laptop. When using applications (mainly Web Browsers) the machine freezes for little time periods. The CPU indicates 100% usage at such times, but this only seems to ...
2
votes
1answer
322 views

How to find what is hammering my I/O?

On a Ubuntu Linux machine that is used as a webserver, I see that I'm really hammering the I/O: - dysphoria():~$ iostat -d 3 3 Linux 3.13.0-45-generic (dysphoria) 2015-10-20 _x86_64_ ...
0
votes
2answers
61 views

does anybody know of a GNU/Linux project which has support for both gcc as well as clang?

Does anybody know of a project (apart from the Linux monolithic kernel) where a/the program can be compiled by both the compilers and can be used to observe their performances, any recommendations ? ...
0
votes
1answer
31 views

How to trace program execution?

Currently go program 1.3, 1.4 and 1.5 has a really different compilation performance, the later has about 4x slower than the former. How to trace the go compiler execution? something like this: ...
-1
votes
2answers
49 views

Getting filename based on filehandle number

I am running strace -p 1234 -o strace.out on a system where process it is suspected that process 1234 is performing badly. I see these reads that take almost a minute to complete: read(11, ...
0
votes
0answers
65 views

system user + kernel time using /proc/stat

user: normal processes executing in user mode nice: niced processes executing in user mode system: processes executing in kernel mode idle: twiddling thumbs iowait: waiting for I/O to complete irq: ...
0
votes
0answers
38 views

issues with acpi-cpufreq and frequency scaling

I am using the Ubuntu distribution on Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz with Kernel version: 3.14.5. I deactivated the intel_pstate driver and activated the acpi-cpufreq driver with userspace ...
2
votes
1answer
66 views

What is the effect of smaller pages?

Does a smaller page size lead to smaller page table(s)? If so, is that good or bad !? I think that this lead to more data handling. Is it possible: to test that within Linux manually or that ...
0
votes
0answers
67 views

turbostat - how to tune to make CPU%c1 = 100

I'm using my server for low-latency trading. I'm using Low Latency Performance Tuning for Red Hat Enterprise Linux 7. It suggests to run turbostat sleep 5 command to verify that Bzy_MHz = TSC_MHz, ...
0
votes
1answer
78 views

Wanted: nonassociative array in AWK

I am looking at speeding up some code in AWK by serially processing an internal string representation instead of serially processing an array representation. (For Examples 1 and 2 below assume ...
0
votes
1answer
98 views

What's the fastest way of writing 1s to a hard disk? [duplicate]

I'm currently writing 1s to a file using the following: tr '\0' '\377' < /dev/zero > /dev/sdb But this is a really slow method when I want to fill a 500GB disk. Is there a quicker way?
3
votes
0answers
158 views

Very high I/O wait time on KVM virtual machine

Debian wheezy AMD64, 3 cores, 2560mb ram (virtual machine). 1 virtual drive on ext4, running on KVM. I decided to move it from raw to qcow2. Everything is ok and everything was going ok during ...
0
votes
0answers
37 views

Find system idle time using any system call in microseconds

For the perf analysis and to make decision based on system and app performance I need to find the idle time of system. I want the precise value in microseconds. I know that I can get the value in ...
3
votes
3answers
76 views

Rebuild original file from diff files to save disk space

Every day 10GB text file is downloaded, the file is ~200 million lines and ~1% of the lines are changed the next day. I want to keep daily files as backup, but I'm trying to save disk space by using ...
0
votes
0answers
25 views

Install orca on redhat

Has anyone successfully installed/ran orca (a performance monitoring tool for Solaris) on Redhat? I see some old posts asking about it but there have been no responses. ...
0
votes
0answers
19 views

Calculate the correct MBit/s in my speedtest

I know wget is usually showing the speed in a summary. But in my small OpenWRT shell, I want to test how long it takes to download 100MB with t=$(date +"%s") wget ...
13
votes
2answers
317 views

Fastest way to delete duplicates in large wordlist?

I need to deduplicate a large wordlist. I tried several commands and did some research here and here where they explain that the fastest way to deduplicate a wordlist seems to be using awk. awk ...
1
vote
1answer
150 views

How low can I go on RAM?

I have some old PCs runnning on my business. And by old I mean PENTIUM-3 800 MHZ and AMD DURON 950 MHZ, with 256MB RAM. They are running my business software today on Windows XP. I want to run Linux ...
1
vote
0answers
107 views

How does performance measurement tool 'perf' actually work?

perf is a tool which accesses the performance counter registers of an machine and gives out metrics to user to analyze the system performance. What I am curious about is, when I read the parts of ...