how to make application run fast


 
Thread Tools Search this Thread
Top Forums Programming how to make application run fast
# 1  
Old 05-25-2009
how to make application run fast

I do some try on one application to know how to fasten a application

root@localhost:/tmpfs> ./pbzip2 -p2 -f -k libc5.cvs.tar
Average Time:22.578 Min Time:22.542 Max Time:22.594

First: I need to say my setting:
using tmpfs: mount -t tmpfs -o size=200m,nr_inodes=10k,mode=777 tmpfs /tmpfs
all the application need to run is located in tmpfs



I do some try below:
1. compile the pbzip2 with -o3,---->can't improve obviously
2. stop some service----- can't improve obviously
3.nice -5 (or more than5 ) ./pbzip2 -p2 -f -k libc5.cvs.tar can't improve obviously

Is there some other method ???
# 2  
Old 05-26-2009
There is such a thing as tuning a filesystem. I have no idea what OS you are running, but there are tools available to improve I/O (filesystem thoughput) -- I think you may be limited by I/O.

You can try running vmstat during a pbzip2 test to see what is happening. Try man vmstat for more information.
# 3  
Old 05-26-2009
Quote:
Originally Posted by yanglei_fage
First: I need to say my setting:
using tmpfs: mount -t tmpfs -o size=200m,nr_inodes=10k,mode=777 tmpfs /tmpfs
all the application need to run is located in tmpfs
If your system has enough RAM there is probably no point running it in a RAMdisk, UNIX does caching in RAM for you.

It's possible you could improve on -O3 actually. There's some obscure options like -ftree-vectorize in the newer versions of gcc that aren't enabled by default because they are experimental.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Run an application in shell script

I run the following command using the command line. I need to run the same command in shell script : ./sas.server start start is a parameter that passes to start.server to startup services within start.server. the path to sas.server is /path/Lev1 Here is my code: #!/bin/sh set... (3 Replies)
Discussion started by: dellanicholson
3 Replies

2. Debian

How to run windows application in Ubuntu?

HI ! all I have some model which works fine in windows 7 OS with matlab program I want to run all those from Ubuntu 12.04 32-bit OS. is there any provision to run windows applications? wine I tried, its not working, if any other available kindly explain the usage also Note : Dual boot ... (5 Replies)
Discussion started by: Akshay Hegde
5 Replies

3. Shell Programming and Scripting

Unable to run application using ssh

I'm testing a C++ based application (HLR) in my solaris system. Whenever i start the application remotely from some other solaris server using ssh command the application throws an error and goes down. command i used: ssh root@192.168.151.77 "./start_hlr.sh" Below is the error observed : ... (1 Reply)
Discussion started by: Arun_Linux
1 Replies

4. UNIX for Dummies Questions & Answers

Run C# .NET Application in Unix

I have an application I wrote that is designed to run on a windows system but now starting to think I would rather be using Unix. Would the application have to be 100% rewritten to work on unix, or is there something I could install that would allow me to run my .NET application inside unix? (2 Replies)
Discussion started by: redbrad0
2 Replies

5. Shell Programming and Scripting

Run application at startup

We have a Windows Service written in C# ported over to linux using Mono Develop... The code is working 100% when we run a script file which runs the exe... but we want the application to run at startup.... The application gathers info of the computer eg. Hard Disk Space etc... And compress it into... (1 Reply)
Discussion started by: yodzaan
1 Replies

6. Shell Programming and Scripting

Make script that run with argument if not run from configuration file argument

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)
Discussion started by: rohit22hamirpur
3 Replies

7. Shell Programming and Scripting

Doubt with How to run an application automatically?

Dear sir, I want to know if i shut-down my system and while starting it next time automatically one application starts running, Is there any way? I an using Suse linux OS. PLz Help me! (4 Replies)
Discussion started by: salil2012
4 Replies

8. AIX

Can I make application for AIX while working on Linux Box

Hi all, I had a large application created using Visual C++. I ported that application using WINE to the Linux platform (ofcourse x86). Now I have to port the same application to AIX which runs over IBM mainframe. I dont have mainframe available but it is required for me to port my application to... (1 Reply)
Discussion started by: noble_curious
1 Replies

9. UNIX for Advanced & Expert Users

Application to run on ports

I do not have much idea about ports. How can i make an application(written in C) to run on a specific port ? Does the code internally written in C says about port number where the application to run ? Can i make an application to select port dynamically which are closed(other than standard... (3 Replies)
Discussion started by: shafi2all
3 Replies

10. Shell Programming and Scripting

How to run an application installed in another unix pc?

Do you guys have any suggestions? hpterm -e rlogin <another unix pc> ??? (1 Reply)
Discussion started by: jehrome_rando
1 Replies
Login or Register to Ask a Question