Tag: nvidia

Benchmarking the system/CPU performance

Have you ever wanted to have a quick check on your CPU performance. I know that lot of people will say that this is not the right way to do this, but here is something that you can use to check the CPU speed.

#!/bin/bash -
#          FILE:  benchmark.sh
#         USAGE:  ./benchmark.sh
#   DESCRIPTION:  Benchmark the CPU
#       OPTIONS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: Amit Agarwal (aka), [email protected]
#       COMPANY: Roamware India Pvt Ltd
#       CREATED: 09/21/2011 11:46:03 AM IST
# Last modified: Wed Sep 21, 2011  12:22PM
#      REVISION:  ---

add ()
    exec 2>&1
    time=$(exec 2>&1;(time while [[  $COUNTER -lt 100000 ]]; do ((COUNTER++)) \
        ; done))
    echo "Time for 100000 additions is "$time
}	# ----------  end of function add  ----------
mul ()
    exec 2>&1
    time=$(exec 2>&1;(time while [[  $COUNTER -lt 100000 ]]; do ((COUNTER++)) \
        ; ((test=test*2));done))
    echo "Time for 100000 mul is "$time
}	# ----------  end of function add  ----------
div ()
    exec 2>&1
    time=$(exec 2>&1;(time while [[  $COUNTER -lt 100000 ]]; do ((COUNTER++)) \
        ; (( test=test/2)); done)|tr -d '\n')
    echo "Time for 100000 divisions is "${time}
}	# ----------  end of function add  ----------

time add
time mul
time div

And here is the output :

Time for 100000 additions is  real 0m1.166s user 0m1.089s sys 0m0.074s

real    0m1.168s
user    0m1.089s
sys    0m0.074s
Time for 100000 mul is  real 0m1.862s user 0m1.778s sys 0m0.082s

real    0m1.863s
user    0m1.779s
sys    0m0.082s
Time for 100000 divisions is  real 0m1.916s user 0m1.825s sys 0m0.089s

real    0m1.918s
user    0m1.825s
sys    0m0.090s

Enhanced by Zemanta

autoten- install nvidia, gnome color chooser and many others in one click on Fedora.

There is a application/GUI called autoten from Dangermouse, find here, which will help you install these.

  • designed to help get basics up and running fast
  • dvdplayback plus other codecs needed
  • parental controls
  • flash plugin
  • video card drivers
  • wireless drivers
  • set up sudo
  • java 6u7
  • realplayer
  • googleearth
  • frostwire
  • Limewire
  • lightscribe
  • compiz-fusion
  • skype
  • parental controls
  • plus many others

I tried it to install couple of things and it was a breeze. Here is a screenshot of the application.


Fixing the Xorg X server after removing nouveau and nvidia and installing a nVidia graphics card.

I updated my destop configuration recently, well thats not the news. But I was a idiot doing certain things at that time might be something interesting to my readers. I got a nVidia graphics card, that was not the issue but I uninstalled the drivers for it after putting it in was the issue.

So, here is the story and the fix.

I put a nVidia card and then wanted to install the nvidia drivers for it. So, what did I do? Most logical thing was to remove the nouveau driver and install the nvidia drivers. Run the nvidia-xsettings and reboot the system to use the drivers. Well, I know that was not the smartest move but did not realize it until I restarted. Kaboom and the X window did not come up after the re-start.

What went wrong? The nVidia drivers did not get loaded and thus I was left with a blank staring screen in front of me. I thought to myself, okay that was not bad, I can still recover without realizing that I had some hard time waiting for me. So, I pressed Alt+F2 to go to the terminal and login and change the driver in the xorg.conf from nvidia to vesa(Default driver that should work with most graphics). Restarted the X server.

Lucky, the server started but as I would know this could not be this simple. There was nothing on the screen that I could recognize. It was all cluttered. Nothing usable. Next step, go back to nouveau and get the screen to usable condition before trying anything else.

Get on the internet, uh huh… I have a mobile broadband connection. So, until the USB stick is mounted and un-mounted, I cannot connect to internet. The card got registered but I could not get it mounted and thus all attempts of using wvdial to connect was futile.

Time to get back to basics. So, I had to get the system up before I could try anything else. Tried connecting the monitor to the on-board graphics port, did not help either.

Last resort, remove the graphics card and try or BIOS settings :).

So, go to BIOS settings and then disable the PCI graphics card and reboot. WOW, that worked and then I guess it was not too difficult.

Hope this would help in distress at least in that they are not the only one with issues.