Hardware :: Ways Of Measuring FLOPS

Sep 25, 2010

I've found various programs and methods to measure FLOPS, but I don't seem to understand them. What is wrong with the following?

test-flops.py
Code:
#! /usr/bin/env python
float_increment = 1.03 # random
start = 57.24 # random
floating_point = start

for i in xrange(10 ** 6):floating_point += float_increment

Code:
PROMPT$ time ./test-flops.py
As far as I can see, this times a program that performs 1 million FLOPs (namely incrementation).

This outputs about 1.2 seconds on my (reasonably fast) machine, giving 840kFLOPS, which is much too low.This post may be in the wrong section; a C translation increments the result by three orders of magnitude (ie, py sucks), but this is still considerably less (~ 7-fold) than published values.

View 5 Replies


ADVERTISEMENT

Hardware :: Measuring A Case Fan?

Mar 30, 2011

This is probably a simple question but I really don't know!How do you measure a case fan to know it's true deminsions whe one is talking about them or whatever?For an example lets use an 80 mm fan, is it measured from the "Frame" size witch is the total size of the fan or what?

View 14 Replies View Related

Ubuntu :: Measuring The Time Of A Code?

Sep 20, 2010

I am a beginner to C and C++ and so far I have learned two ways to measure the time my program takes to run.

Method 1: Just compile your C file and if the executable is say a.out just type time ./a.out

Method 2: Here the general structure of the code is

Code:
#include<stdio.h>
#include<time.h>
int main(void)

[Code]....

Question 1 Do Method 1 and Method 2 return the same times?

Question 2 Method 1 gives three times real, usr and sys . Is it true that USR+SYS= TIME GIVEN BY METHOD 2

I have performed some experiments with small codes which return the squares of numbers uptill 36000 and I feel the answer to question 2 is yes

View 2 Replies View Related

Ubuntu :: Measuring Power - Watts?

Apr 11, 2011

I was wondering if there is a way to see how much power my computer is using while using Ubuntu. I know there are hardware devices, plugs, I can use but I didn't know if there was a computer program that I could use that would do the same thing. I am currently using an IONITX F-E, 2Gb 800mhz RAM, 6 Green WD 2TB drives, and plan on getting a blu-ray drive installed in the last slot. I am also using a PCI-E x4 SATA card, and using software raid 5. I have a 350 watt psu installed and would like to remove it and install a pico-psu but the pico seems to max out at 200 watts.

View 2 Replies View Related

Software :: Measuring Boot Time

Mar 19, 2009

I am using a simple plain Debian Lenny base system (No X). I would like to measure how many seconds my system takes to boot - time between hitting enter key on GRUB screen to login console on tty1.One obvious way is to measure it manually by looking at your wrist watch or an external timer but I would to measure it more accurately - something that is built inside the Operating System.

View 5 Replies View Related

Software :: Measuring Network Throughput

May 15, 2010

I want to know the actual maximum throughput of my lan at home.Could you suggest some free monitoring tools for me to use

View 2 Replies View Related

Programming :: Measuring Microseconds With Linux

Oct 27, 2010

I need to measure the time it takes for a program I'm writing to do Its job in microseconds resolution. I'm using Ubuntu 10.10. My Idea is, to write a device driver that directly reads the counter that produces the interrupt of RTC ticks. How do I do this, for a Linux kernel and a PC hardware?

View 4 Replies View Related

Software :: Measuring Time Elapsed In A Program Gcc And G++

Jul 7, 2009

I've done a lot of googling for this, but always found code that does not work on my compiler.Could anyone please post a small (working) program through which I can store the starting time of the program (milliseconds) and get the ending time of the program in integer variables?Am working on Fedora 8, and with the gcc compiler.

View 2 Replies View Related

Debian Installation :: Measuring System Of Installer (JEDEC Or Metric)?

May 11, 2015

What measuring system does partitioning step in Debian installer use - metric or JEDEC? I.e. it uses MB, which in JEDEC means 1024^2 bytes, and in metric means 1000^2 bytes.

View 3 Replies View Related

General :: Measuring Time That A Program Is Running In Shell Script

Nov 11, 2010

I have a script that executed 100000 C Programs, reads the commands from a file and executes them. There is a requirement to measuer the time that each of this 100K C programs running.If it exceeds 120 sec I want to Kill that Process.Any Idea to embed this in my shell script?

View 4 Replies View Related

Ubuntu :: 10.04 2 Different Ways Of Loading?

May 1, 2010

This is a clean install of Lucid sometimes I get the Ubuntu loading screen and sometimes just black screen followed by a flash of green across the top and some text. Sometimes its loads with a high resolution and that's when there are other problems no authorisation to mount other file systems and no shutdown or restart just takes me back to login. When it loads at the lower resolution it seems to work fine.

View 8 Replies View Related

General :: Any Other Ways To Set Environment Variables

May 20, 2010

I am running Red Hat Linux Enterprise 5; I am always using the export command to set environment variables.Are there any other ways to set environment variables and what are the advantages/disadvantages of them?

View 4 Replies View Related

Ubuntu :: Customizing Desktops In Different Ways?

Feb 6, 2010

I just want to know weather it is possible by some means to set different preferences for the two desktops that are available in ubuntu?? E.g.: different backgrounds, shortcuts etc...

View 2 Replies View Related

Ubuntu Networking :: Cannot Get NFS To Work Both Ways?

Jun 15, 2010

I have been using another Linux distro(Xandros) for 3 years on one computer and have just installed Ubuntu 10.04 on a different computer. I am trying to network the 2 computers via simple ethernet cards and a crossover cable so that I can gradually migrate applications, data and peripherals from Xandros to Ubuntu. I am completely new to Ubuntu and I am really struggling to get NFS to work. Each computer
can ping the other, so the hardware connectivity seems OK. I have shared the relevant directories from each computer. I have followed malco2001's ellent HowTo guide and have now reached the stage where Xandros, as client, can mount directories on Ubuntu, as server, and see the files but I cannot get Ubuntu, as client, to mount directories on Xandros. When I attempt this from Ubuntu, using the command

# mount -t nfs 192.168.1.2:/home/richard /mnt/PC2_richard
(I have already issued from Ubuntu: # mkdir /mnt/PC2_richard)
I get the message:
mount.nfs: mount to NFS server '192.168.1.2:/home/richard' failed: RPC Error: Success
The configuration of various files etc. is as follows:
Ubuntu
IP address: 192.168.1.1

[Code]...

I should mention that Xandros does not have nfs-kernel-server installed; instead it has nfs-user-server.I am sorry if I have omitted or done something really stupid but I have spent best part of a week on this with only partial success.

View 4 Replies View Related

Ubuntu Installation :: Install In Other Ways Than CD Or USB?

Jun 28, 2011

I have an old desktop computer at home in which the CD drive is not functional. Also my BIOS does not allow me to boot from USB. Is there anyway in which I can run Ubuntu 11.04? Installing inside windows is not an option too because the partition containing windows is not not working.

View 2 Replies View Related

General :: Ways For Remote Administration?

Feb 17, 2011

would be the best and easiest way to control my remote server(preferably using desktop GUI of course) from a Windows PC ?

View 4 Replies View Related

General :: Ways To Get In-depth Knowledge Of OS

Jun 21, 2011

I'm currently trying to find ways to get in-depth knowledge of the Linux OS. To give a brief overview of where I am at right now, I am a computational science graduate student who does all of his work on *nix scientific clusters.I also took a lot of computer engineering and computer science courses in college, as well as being the stereotypical standard computer nerd growing up, so I'm somewhat familiar with computer architecture, though more from the hardware side.So I'm familiar (though I wouldn't claim to be an expert quite yet, by any means) with using Linux and C programming, and I have a basic grasp of generic computer architecture, but what I feel I really lack knowledge in is the specific details of the Linux. All the details of the boot process, exactly what the kernel does, how Linux handles memory management, etc. I'm having difficulty finding any information on this;all I can find is generic information targeted towards people who are just starting out, and the stuff I've found that talks about the kernel seems more oriented towards "you change setting X and Y happens" rather than what the kernel is doing.

View 7 Replies View Related

General :: Ways To Start PHP Script

Oct 10, 2010

I just recently installed Fedora Server on my computer and I am planning on hosting my website on this server instead of paying for hosting.All of my files for my website are currently using php but for some reason when I moved them here to "test" them before launching the final switch, the PHP does not work.I have further investigated this issue to learn that my php files were written using:<? and ?> to start the scripts

Apparently I have to write <?php and php?> to make these scripts work now.Is there a way I can edit a system file to allow me to use both instead of having to change all my files?

View 4 Replies View Related

Programming :: Ways Of Handling The ADT Interface?

Nov 30, 2010

During my read, "Code Complete",the author described the different ways of handling the ADT interface.He has wrote this passage:

Quote:

Option 2: Explicitly provide the data used by the ADT services. In this approach, you declare the data that the ADT uses within each routine that uses an ADT service. In other words, you create a Font data type that you pass to each of the ADT service routines. You must design the ADT service routines so that they use the Font data that's passed to them each time they're called. The client code doesn't need a font ID if you use this approach because it keeps track of the font data itself. (Even though the data is available directly from the Font data type, you should access it only with the ADT service routines.This is called keeping the structure "closed.") The advantage of this approach is that the ADT service routines don't have to look up font information based on a font ID. The disadvantage is that it exposes font data to the rest of the program, which increases the likelihood that client code will make use of the
ADT's implementation details that should have remained hidden within the ADT.

The problem is that it is a bit subtle in terms of coding for me. Can anybody give more concrete example, in working codes, especially in Java?

View 2 Replies View Related

CentOS 5 :: Passwordless SSH Not Working Both Ways?

Jul 10, 2010

I have 3 servers with Oracle 10g installed. In order for rsync to work for log shipping I need to have passwordless SSH configured.*Note: I did not configure these servers, 2 DBA's got canned and I'm left to fix this and I am not a DBA.I have done passwordless SSH in the past and it is easy.Here is my problem: (-> = passwordless ssh works)ServerA -> ServerCServerB -> ServerCBut I need all 3 to be able to do passwordless SSH to each other.I deleted all the files in /home/oracle/.ssh on all 3 servers and this is what I did for all 3 servers:

ssh-keygen -t rsa
ssh-keygen -t dsa
cat id_rsa.pub >> authorized_keys

[code]....

View 13 Replies View Related

Ubuntu :: Ways To Enable / Disable OS Service

Jan 18, 2011

can anyone please provide useful command for :

1)ways to enable/disable OS service(FTP/Email/Web server/Firewall/telnet/Lan file sharing)

2) basic interaction with the OS ( checking information/Open Files/Running Program)

3)Boot-loading configuration and customization

4)installation/uninstallation of programs/system patches

5)System configuration(Time setting/Date setting/User login detail change/Access right control)

View 3 Replies View Related

Ubuntu :: Graphical Ways Of Shutting Down Do Not Work?

Feb 2, 2011

My desktop machine has U 10.10, Gnome, Compiz, Cairo dock. After a lengthy session with lots of programs and windows open, hitting the shutdown or restart or logout buttons don't produce anything at all. Suspend works. Sudo shutdown -h now in a terminal window works. Why the graphical ways of shutting down don't work?

View 1 Replies View Related

Networking :: Using Tftp - Can't Get Image But Can Ping Both Ways?

Apr 12, 2011

I have created a /tftpboot directory and chmod it to 777 I have put an image 'uImage' on my Debian box under /tftpboot In directory /etc/xinetd.d/ I have created file tftp:

Service tftp
{
disable = no
socket_type= dgram
protocol= udp
wait= yes
user= root

[Code]...

I keep geting timeouts although uImage is on the debian box and it appears the tftp server is running.

View 14 Replies View Related

General :: Best Ways To Partition Hard Drive?

Nov 13, 2010

What is one of the best ways to partition my hard drive? It's 110GB. I will be installing Fedora with XFCE but I want to also install other linux distro on the same laptop to experiment and I want to have the iso on the hard disk and install them from the hard disk. I'm not sure how many distro I will try but I could remove the ones I don't like.

View 8 Replies View Related

General :: Ways To Increase Ftp Transter Speed?

Feb 4, 2010

I can transfer file at 2MBps using ftp.I need to increase it to 5MBps,I tried changing following values in /etc/sysctl.conf # increase TCP max buffer size setable using setsockopt()

[Code]...

but then too there is no change in the transfer speed.Can anyone please guide me how to increase the ftp transfer speed.I am using vsftp.

View 7 Replies View Related

Ubuntu Multimedia :: Get Dts Passthrough Works In Many Many Ways With No Success

Jan 18, 2010

I found myself in troubles. I was trying to get dts passthrough works in many many ways with no success. Finally I (desperately) decided to try OSS rather than ALSA following this guide: [URL].. And there the things went wrong. I ended up with no sound at all so I tried to reinstall alsa again but with no luck.

basicaly what I did after following the guide was: sudo apt-get install alsa-base alsa-utils. sudo dpkg-reconfigure linux-sound-base //and choose alsa

but still, for example:
$ alsamixer
puts:
alsamixer: function snd_ctl_open failed for default: No such file or directory
$ /etc/init.d/alsa-utils start
* Setting up ALSA... [ OK ]

but no alsa process at all. $ aplay -l aplay: device_list:223: no soundcards found. It seems to me like sound card drivers are gone..

View 4 Replies View Related

Ubuntu :: Difference Between Two Ways Of Disable Root Password

Mar 5, 2010

I find out there are two ways to do that:
sudo passwd -l root
sudo usermod -p root
What are the different? I saw a kubuntu post said:
-l, --lock

Lock the named account. This option disables an account by changing the password to a value which matches no possible encrypted value. I enable and set a root password, I want to return to a "no possible encrypted value" just like the way it was.

View 8 Replies View Related

Ubuntu :: Changing Some Default Ways Programs Start?

Oct 28, 2010

am running 10.10 64bit and I am wanting to change a few wayssome programs start up on boot, they are as follows:1. make NetworkManager not load onboot and require me to manually start it in the command line2. make bluetooth not start on boot and allow to manually start it from the command line3. make networking not boot on startand start manually from command line I have been trying to search on google but most of thereads I find are about removing things completely and the few that werent did not work for what I want to do.

View 8 Replies View Related

Ubuntu Installation :: Downloaded One Of The Alternative CDs And Installing It Both Ways?

Jan 11, 2011

I'm looking to run a dual boot on this laptop. I have Win7 currently installed, and I have my hard drive partitioned and ready to go for an Ubuntu install. I've downloaded the i386 CD from the website, burned it successfully. I rebooted with the disc in, and when I select install to hard drive, it shows a blinking cursor below the install screen and hangs there. I installed the ISO to a bootable USB drive and tried to install it that way, same thing. I even tried downloaded one of the alternative CDs and installing it both ways. Same problem. Ive installed Ubuntu on this laptop before and it's ran successfully. I believe it was 9.04.

Gateway ML3109
2GB of RAM
75GB HDD (65 for Win7, 10 for Ubuntu)
798MBs of Video RAM

View 2 Replies View Related

General :: Ways Of Setting Up The Cluster.conf File?

Jan 26, 2010

I've tried many, many different ways of setting up the cluster.conf file, but every time I start the cman service I get a message telling me "corosync died: could not read cluster configuration".This means nothing to me, nor can I find logs, or anything on the net about this message. I'm ultimately just trying to run a simple GFS2 config on 2 Ubuntu 9.10 desktop nodes, but I can't even get a basic cluster config going.What am I missing? I've been at this for days.

Code:
<cluster name="example" config_version="1">
<clusternodes>

[code]...

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved