The speed at which a program runs

learn more… | top users | synonyms

0
votes
1answer
99 views

Why Linux games are less performanced than Win 7?

I had Windows 7 x64 and now I have Ubuntu 14.04 on notebook HP 4535s. I expected games will be faster than on Windows, because of less machine requirements. But it isn't so... E.g. games via ...
2
votes
3answers
52 views

Optimise a shell script / command to delete files

I'm running Magento and it doesn't clean up old session data, so I need to clean it up with a shell script / cronjob: 0,30 * * * * /usr/bin/find /var/www/magento/var/session -name 'sess_*' -type f ...
0
votes
1answer
18 views

Solaris prstat - definition of “recent” time used in percentages

The man page for prstat (on Solaris 10 in my case) notes that that CPU % output is the "percentage of recent CPU time". I am trying to understand in more depth what "recent" means in this context - is ...
0
votes
0answers
31 views

SEGFAULT error 4 in libX11 on another X display caused by War Thunder

I read tons of info about performance boosting for linux gaming. One of them is to run games on a separate X server. After hours of search and tries, I ended up with something "working" for most of ...
0
votes
1answer
28 views

Does dm-multipath schedule I/O?

I have a multipath device I'm interested in: [root@xxx dm-7]# multipath -ll mpathf mpathf (3600601609f013300227e5b5b3790e411) dm-7 DGC,VRAID size=3.0T features='1 queue_if_no_path' hwhandler='1 alua' ...
0
votes
0answers
30 views

AIX CPU usage - how to know how many CPUs running?

Over AIX 6.1 - I do see the following output, it says I have 16 Max Physical CPUs; but there are only 8 active - why is that? The system will use the remaining 8 if needed? Or are they disabled? # ...
4
votes
0answers
48 views

Fixing terrible performance when watching/reading video and writing video files to disk

I have had this issue for quite some time and tried many times to fix it on my own and it always fails. IP schedulers, ionice and things like that always yield no result. I even went and bought an ...
1
vote
0answers
30 views

Variations in Ubuntu 12.04 /usr/bin/time statistics

I have a command line tool which I run on Ubuntu 12.04.5 LTS. I need to calculate the cpu time for this program. I have been checking /usr/bin/time function. command: /usr/bin/time -v -a -o ...
1
vote
2answers
110 views

Optimizing logical sector size for physical sector size 4096 HDD

With many new hard drive disks the physical sector size is 4096. Would it be possible to make the system use a logical sector size of the same size, rather than the default logical sector size of 512? ...
0
votes
0answers
16 views

Using `perf` repeatedly with file input

perf can be used to analyze the performance of a program. Say you want to test the performance of a program prgrm, with input from a file, you can run: perf stat prgrm < inp.dat Now when you ...
0
votes
0answers
18 views

run netperf without IP address available

I have DPDK set up, with two NICs taken over by DPDK, i.e. the interfaces are not visible to userspace applications. Now, I need to run netperf/iperf to measure throughput performance of port-to-port ...
0
votes
0answers
21 views

netperf: run with no control connection

Trying to run netperf without setting up a control connection between netperf and netserver: client% netperf -N -H 10.0.0.2 ... netperf: send_omni: connect_data_socket failed: No route to ...
1
vote
2answers
65 views

How to make a filter more efficient

I've created a script to compare a list of users from a MSSQL database against a list of disabled AD users. The tool we use for AD authentication returns data in the following format (with plenty ...
1
vote
3answers
122 views

Can I make [ $(($1 % $check)) -ne 0 ]; be more performant and not be killed?

If have the following code which works for up to 13 (line 2) in a few seconds but when I try and do upper teens and 20 it gets killed after a couple of minutes. divisible_by () { for ((check=2; ...
0
votes
0answers
93 views

Virtualized Debian Jessie: slow booting / shutting down :(

I have a Debian 8 (Jessie), cat /proc/version says: Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-16) ) #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) ...
2
votes
2answers
59 views

Why is userspace slower than the kernel?

I've heard that FUSE-based filesystems are notoriously slow because they are implemented in a userspace program. What is it about userspace that is slower than the kernel?
5
votes
2answers
43 views

How to find the number of bytes rewritten to a folder hierarchy?

I want metrics for how much writing and reading have been done to a folder. vmstat -d gives metrics at the whole disk level. iotop will give per process rw stats. But how can I find out how much ...
0
votes
1answer
41 views

Where is NMon cron job for AIX?

While trying to know where is NMon job configured to run; I do find that it's NOT listed on Crontab (using crontab -l). BUT - the job is currently running as expected, which is weird. See the ...
2
votes
0answers
30 views

Why does my fresh Debian have a high latency?

The time between clicking and seeing a response is very high. Typing looks very funny, and makes me feel queasy. I think there's about 50-20ms "extra". I would expect a top notch linux distro to have ...
3
votes
1answer
127 views

How does netstat command fit in various layers of TCP/IP model in the performance diagram?

netstat command is useful to, Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Now, I was reading about the Linux performance ...
1
vote
1answer
59 views

Is it useful for a proxy to buffer less data than Linux RCVBUF can?

I am looking at how HTTP proxies and reverse proxies deal with slow client problems. The idea is that the upstream server only have a limited slots for clients and if the client is slow to receive ...
0
votes
0answers
91 views

Increasing ulimit stack size benefits?

Hello I'm new in Linux and at my work I have a server that runs a banking software. The company that made the software said that the stack size should be set to unlimited. Does this make the software ...
2
votes
1answer
32 views

Why is my computer sluggish after downloading a lot?

When I download a lot of data (e.g. 3GB) in one go, using a program such as Transmission or Wget, progressively during the downloading, and after it has has finished, the computer always seems ...
1
vote
0answers
49 views

How to diagnose CPU performance problems?

Recently I bought a new netbook based on AMD A4-1200 CPU and installed Linux Mint 17 with XFCE. RAM is 4GB So, testing some of my programs, I found very strange behavior. On random intervals, the ...
4
votes
2answers
165 views

Disk busy is close to 100% and iowait is 0,0% on SunOS, how can it be possible?

During monitoring of SunOS5.10 machine I noticed strange behavior: Disk busy is close to 100% Disk waiting time is 0,0% Primary purpose of this machine is running application server on jvm. This ...
16
votes
3answers
1k views

Why is coreutils sort slower than Python?

I wrote the following script to test the speed of Python's sort functionality: from sys import stdin, stdout lines = list(stdin) lines.sort() stdout.writelines(lines) I then compared this to the ...
2
votes
1answer
60 views

What could be done to make Embedded Linux boot faster?

My team is developing a software for a Embedded Linux solution. The problem we are facing is that it takes too much time for the system to be ready to start running our desired apps (that is, too much ...
0
votes
0answers
33 views

Xorg consumes CPU, RHEL 7 fresh install

I've installed RHEL 7 with default settings. I wonder why Xorg consumes 30% of my CPUs. How can I know what's wrong and how to fix it? HP DL360p Gen8, dual Xeon E5-2640
0
votes
1answer
84 views

rsync: Copy speed decreases while syncing two directories

I am using rsync on fedora 20 to sync my directories. I am using the command below:- $ rsync --progress -a srcDir DestDir But, as rsync copies files, copy speed decreases significantly. Here is my ...
1
vote
1answer
172 views

Find the process which is taking maximum CPU usage if CPU usage is more than 60%?

I am trying to measure the cpu usage of my ubuntu machine and if the cpu usage is more than 60%, then I need to find out the process who has the highest cpu usage and then send out an email saying CPU ...
1
vote
1answer
51 views

Disk is a bottleneck. Background processes make things worse. How to improve responsiveness?

Often, the bottleneck of my laptop is the disk. When doing some disk-intensive computations, automatically-started background processes like updatedb, find /something etc. kick in, making things even ...
1
vote
3answers
51 views

Software RAID10 setup writes small files extremely slowly, is this normal?

I have a software RAID-10 setup on Linux 3.16.6-203.fc20.x86_64, with 1.2 metadata and the default chunk size (512K): $ cat /proc/mdstat md0 : active raid10 sdc1[4] sdb1[0] sdd1[2] sde1[3] ...
1
vote
0answers
43 views

Properly mount a windows share to move files on the mountpoint

This question resulted from a question of mine on stackexchange. I mount a windows share with mount -t cifs -o ...
8
votes
3answers
2k views

Transfering millions of files from one server to another

I have two servers. One of them has 15 million text files (about 40 GB). I am trying to transfer them to another server. I considered zipping them and transferring the archive. But I realized that ...
0
votes
1answer
60 views

Questions about CPU usage [closed]

How bad/normal/good is this CPU usage? Cpu0 : 14.4%us, 6.3%sy, 0.0%ni, 78.8%id, 0.0%wa, 0.0%hi, 0.5%si, 0.0%st Cpu1 : 88.3%us, 8.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 3.7%si, 0.0%st ...
0
votes
1answer
34 views

Why scp with compression takes longer than without compression

I was playing around and noticed that secure-copying with compression takes longer than without compression time scp -C ./test.sql user@vmware:/home/user real 0m42.758s user 0m40.455s sys ...
1
vote
0answers
23 views

What tools can show me the CPU usage that doesn't appear in top/sar?

I have a virtual machine that's using ip_tables to set up some connection forwarding. According to top, sar and /proc/stat, I'm > 99% idle. However, perf says I'm only about 72% idle, with the rest ...
3
votes
1answer
178 views

Why is ImageMagick's `compare` command so slow and is there an alternative?

I have a shell script running on an little Atom based Micro-ATX box that is doing some watchdog-like functions for a number of devices on a local network. One of the things it's doing is monitoring ...
18
votes
4answers
2k views

Is there a fastest way to shutdown the system?

Or is shutdown -h now the fastest it can get? I look for some syscall or similar that will allow to skip lots of the stuff done prior to shutdown (in particular to care about the running proccesses). ...
1
vote
1answer
134 views

Why does mouse and keyboard freeze when Linux swaps

I have noticed that under Linux, when there is heavy swapping, the mouse cursor freezes, and even CapsLock or Ctrl+Alt+F1 don't work. The system uses the deadline I/O scheduler but this should not ...
1
vote
2answers
56 views

Increasing performance of clear text file reads

In our bioinformatics application we have large files (up to 900MB, typically 100MB). These files contain a clear text representation of a genome, and are essentially a 1 line file with a sequence of ...
1
vote
0answers
19 views

Many transient files on journaled filesystem?

Writing and deleting many files quickly I'm going to write many temporary files per second, over a sustained period. Each will be deleted after some milliseconds. Say we have an image processing ...
2
votes
1answer
287 views

How to measure iptables load?

I have added about 3500 IP addresses to iptables using ufw on a Debian 7 and I am wondering if this has any impact on the performance of my server. How can I measure that?
3
votes
2answers
28 views

Optimize file layout for minimal seek in specific situations

Starting VLC is slow on my system. The reason: it reads more than 1000 different .so files. Is there a way to make it read those files faster? I think if all the files followed immediately after each ...
1
vote
3answers
138 views

Why does find -inum iterate through the whole filesystem tree?

It surprises me to see find iterate/walk through the complete filesystem when I do a simple find -inum 12345 Without background info it seems to me that there should be much easier ways for to tell ...
0
votes
2answers
75 views

won't the ever changing affinity assigned to threads by the Linux kernel have adverse effect on overall performance?

In my program, I have several threads that are started with the process and that remain until the program ends. They will meet different loads during the lifetime of the app, and at times they will ...
0
votes
1answer
73 views

Powerful Workstation

I heard about ILM's (Industrial Light and Magic) workstations on which they create models and scenes for a lot of different movies. They have workstations with more than 1024 GB of ram and a lot of ...
2
votes
0answers
92 views

Why adding swap space is the slowest part of the booting process? [closed]

I'm not having performance problems, but just running dmesg command, I can see that adding Swap space is the slowest part of the booting process. Why? I actually have ~4GB for swap and 2GB RAM ...
0
votes
0answers
26 views

Pentium D and GeForce 6700 does not have enough power to play DVD full screen

I have an older computer which I would like to use as a DVD and video file player. These are the specs: CPU = Intel Pentrium D @ 3 GHz RAM = 1 GB GPU = NVIDIA GeForce 6700 XL HDD = 229 GB OS = Ubuntu ...
0
votes
1answer
110 views

What's the pros and cons of disabling the swap partition if the RAM is large enough? [duplicate]

My computer has 16GB RAM and 1TB SSD. So I think the swap partition is not needful. What's the pros and cons of disabling the swap partition if the RAM is large enough? Is it recommended to disable ...