LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-15-2008, 05:05 AM   #1
Steve_T
LQ Newbie
 
Registered: Jul 2008
Location: Aldeburgh,Suffolk, England
Distribution: CentOS 5.2
Posts: 5

Rep: Reputation: 0
How can i put some strain on my linux box?


i have got a IBM eServer Xseries 335 and i would like to run somehting on it that is going to make it work fairly hard to see how well it performs?

Im running CentOS 5.2

Spec:

2x Dual Core Intel Xeon 2.8ghz
Raid 1 mirroring 2 U320 36gb drives
4gb ram

Also how well will CentOS make use of the 4 processors?

Thanks
Steve
 
Old 07-15-2008, 05:21 AM   #2
halon1301
LQ Newbie
 
Registered: Jul 2008
Location: Auckland, New Zealand
Distribution: Free/Open BSD and Ubuntu
Posts: 9

Rep: Reputation: 1
Here's an idea - download an flv movie from somewhere and see how quick your computer can convert it from flv format to avi. Here's the command I used:

$ time ffmpeg -i ./somemovie.flv -ab 128 -ar 44100 test.avi
real 0m12.203s
user 0m12.029s
sys 0m0.152s

Takes 12 seconds on my PC which is a 2.33Ghz E6550 Core 2 Duo - I'm betting my money heavily on your machine though...

Something that might make it work a little harder is MDCrack - I believe it can use multiple cores, but being Windows-only I'm not sure... I've used it successfully to see how well my PC could crunch numbers. You can get MDCrack here:
http://c3rb3r.openwall.net/mdcrack/

Generate some ciphertext like this:
$ md5sum -t "test12"

Then try cracking it using MDCrack - sorry, but I can't remember the syntax for MDCrack. It'll be on their website. I think my PC would take about 5 minutes to exhaust all the possible hashes up to 7 alphanumeric characters.

Have fun :-)
 
Old 07-15-2008, 05:33 AM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I think the best thing to do is load it up to do whatever it needs to. There is a tool called "stress", but I don't know how useful it would be to you since I have no idea what you'll be testing. Some things can't really be properly tested without a special environment to test in (for example, multiple high-speed network cards + several individual computers to send requests for http, database queries, etc).

The characteristics which are most important to you really depends on your use. For example, when processing satellite data into images it really is the computation speed and memory which is important; even if it took as long as 5s to load the data into memory, the processing time (depending on what you want to do) may be on the order of minutes. If you're running a high-throughput web server, memory, storage retrieval, and network bandwidth are very important, but raw processor speed is not the highest priority.

Since I run compute-intensive tasks, another thing which is very important to me is that the results are correct. Some optimizations, hidden approximations (some people thinking they're 'clever' for using a fast - but wrong - shortcut), and buggy hardware or software may produce fast results - but if they're wrong, what's the point?

As for how well CentOS makes use of the processors, one factor affecting that would be the kernel configuration (and to some degree the software running); specifically, settings affecting the 'CPU affinity' of a process. A complication comes up with "threads" - there is the Linux way (a copy of the parent process with shared resources, similar to a 'thread' in WinDuhs) and the older UNIX way where you essentially have an unrelated process and all passing of information between 'threads' (really parent and children processes) has to be done via Inter Process Communications mechanisms. Otherwise the latest scheduler does a pretty good job of distributing the load and you needn't be too concerned - unless real operating conditions show that your load balancing is weird.
 
Old 07-15-2008, 07:59 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by Steve_T View Post
i have got a IBM eServer Xseries 335 and i would like to run somehting on it that is going to make it work fairly hard to see how well it performs?
Thanks
Steve
1) Run one or several folding@home clients.
2) See how quickly it can encode movie into x264 (the only codec I know that can use several processors at once during encoding).
Here's simple x264 2-pass encoding sciprt, which uses all available CPUs:
Quote:
#!/bin/bash

BASENAME=$1
OUTPUT=$BASENAME.new.avi

COMMON="$BASENAME -oac copy "
#COMMON="$BASENAME -nosound "

BITRATE=2000

#CODEC=" -ovc xvid -xvidencopts chroma_opt:vhq=4:\
#bvhq=1:bitrate=$BITRATE:quant_type=mpeg:pass="
CODEC=" -ovc x264 -x264encopts bitrate=$BITRATE\
:subq=6:partitions=all:8x8dct:me=umh:\
frameref=5:bframes=3:b_pyramid:weight_b:threads=auto:pass="
#CODEC=" -ovc x264 -x264encopts bitrate=$BITRATE:\
#subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:\
#weight_b:threads=auto:pass="

echo "$COMMON$CODEC"

mencoder $COMMON$CODEC"1" -o /dev/null

mencoder $COMMON$CODEC"2" -o $OUTPUT
Honestly, apart from encoding x264 video (or encoding several non-x264 videos at once), compiling stuff with -j switch or making several archives at once I can't think about any good use for multicore/multicpu machine.

Quote:
Originally Posted by halon1301 View Post
$ time ffmpeg -i ./somemovie.flv -ab 128 -ar 44100 test.avi
This will probably use only one CPU core.

Last edited by ErV; 07-15-2008 at 08:41 AM.
 
Old 07-15-2008, 09:59 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
I agree with pinniped. Install what the system is going to be used for and use specific benchmark tests to test performance, etc. Just running a command to encode a movie isn't going to give you accurate results if say, you were going to run a webserver with a database backend on it. Unless you're going to run this server to encode movies that is..
 
Old 07-15-2008, 10:10 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Linux-Server and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-21-2008, 12:19 PM   #7
Steve_T
LQ Newbie
 
Registered: Jul 2008
Location: Aldeburgh,Suffolk, England
Distribution: CentOS 5.2
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by trickykid View Post
I agree with pinniped. Install what the system is going to be used for and use specific benchmark tests to test performance, etc. Just running a command to encode a movie isn't going to give you accurate results if say, you were going to run a webserver with a database backend on it. Unless you're going to run this server to encode movies that is..
thats fair enough.

it is used to sever an internal website with database and Samaba shares. What can i bench mark this with.

Steve
 
Old 07-21-2008, 12:42 PM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by Steve_T View Post
thats fair enough.

it is used to sever an internal website with database and Samaba shares. What can i bench mark this with.

Steve
Well if you're running apache for the webserver portion of it, you could use ab which comes with apache, it is it's own benchmarking tool.

As for samba, not sure, maybe pound the crap out of the web server and test by copying large files to and from it, etc. I try to avoid samba so never had to benchmark it.

There are plenty of benchmarks for databases as well, depending on which one you're using.
 
Old 07-21-2008, 12:45 PM   #9
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
Run VirtualBox with 15 guest computers at the same time Believe me, that will show some damage to your resources.

My desktop has 2 Xeon 2.2 GHz processors, and I can really tell when I'm running a couple virtual boxes.
 
Old 07-21-2008, 12:48 PM   #10
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by phantom_cyph View Post
Run VirtualBox with 15 guest computers at the same time Believe me, that will show some damage to your resources.

My desktop has 2 Xeon 2.2 GHz processors, and I can really tell when I'm running a couple virtual boxes.
But that doesn't give him accurate results in what the machine is going to be used for. Why test a machine or benchmark a server with virtual machines when he has no intention of running virtual machines? That's not going to tell him how well a webserver + database and samba shares are going to hold up under heavy load?

Come on people, think before you reply. Try to give real world answers instead of just pointing users to unreliable solutions that have nothing to do with the question or problem on hand.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Fail2ban - Put brute force attackers away from your Linux Box LXer Syndicated Linux News 0 10-13-2007 11:20 AM
Servers on my linux box put random crap into webpages!! Farthom Linux - Networking 2 12-06-2004 09:18 PM
How can I put KDE 3.3 on my box? Kevin1290X KTPX Linux - General 1 09-01-2004 11:14 PM
Trying to put linux on a windows box, but having problems. elpollodiablo Linux - Software 10 07-24-2003 02:02 AM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration