The speed at which a program runs

learn more… | top users | synonyms (1)

4
votes
3answers
192 views

How to search efficiently for a list of strings in a big code directory

I have a list of strings, for every of those strings, I want to check if it occurs in a big source code directory. I came to a GNU grep solution that gives me what I want: for key in $(cat /tmp/...
0
votes
2answers
93 views

Memory usage and space disk on Solaris 11

How can I monitor Memory Usage: 33/512MB (6%) Disk usage: 4.2/20GB (23%) CPU Load: 0.01 on a Solaris 11 System? I want to make a script to monitor my desktop resources.
1
vote
2answers
36 views

Effective way of changing the format of numeric file data

So I have a big file containing the values of a matrix with the folowing format: (0,0) 0.6666 (0,1) 0.0000 (0,2) 1.3333 ... And I want to convert it to: 0 0 0.6666e+00 0 1 0.0000e+00 0 2 1.3333e+...
1
vote
3answers
145 views

How to configure swappiness in Linux Memory Management?

The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk,what is the default setting and how to configure that to improve overall ...
0
votes
1answer
130 views

Will LVM partitioning affect my SSD life or performance?

I've installed new system (Linux Mint 17.3, laptop) using LVM partitioning because I currently don't need a swap (there is enough RAM - 12GB) and I want to use my SSD (Samsung 850 evo 250GB) more ...
0
votes
1answer
253 views

Lots of TIME_WAIT in netstat on apache server

What would be the reason for many TIME_WAIT here? Even we have very few ESTABLISHED, SYN connection. [root@www ~]# netstat -natp | grep "210.XX.XX.XX:80" | awk '{print $6}' | sort | uniq -c 1 ...
0
votes
0answers
24 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 total,...
3
votes
1answer
109 views

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

If the size configured for tmpfs is bigger 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 ...
0
votes
0answers
149 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
62 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
87 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
82 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
126 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
66 views

Apache Web Server Load Testing ( Running on Centos6) [closed]

How can i easily test how many requests my web server ( Apache) setup can handle without dropping a connection or timing out. Is there any simple bash script or i have to use some sophisticated ...
1
vote
1answer
67 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
99 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
309 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
18 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
47 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
98 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
44 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
38 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
49 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
1answer
210 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
655 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
41 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
21 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
178 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
72 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
93 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
65 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
59 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
546 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
27 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
33 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 ...
1
vote
0answers
23 views

Apache's sudden drop of requests

My server was working fine until a couple of weeks ago. All of a sudden, I started getting error notices from PHP. Lost connection to MySQL server at 'reading authorization packet', system error: ...
2
votes
1answer
45 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
120 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
75 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
33 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
352 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
62 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
48 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
83 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\335\0\...
0
votes
0answers
131 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
76 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
85 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
138 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
91 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
105 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?