473,396 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

HDD Stress Test with Python

A bit off topic, but here goes: Does this look like a reasonable hard
drive stress-test? I run it repeatedly for a few days on our new
PowerMac G5's (they come with Python 2.3 installed!!!) which we've had
drive problems with. Two 80GB SATA Maxtor drives replaced already. Only
been in use for a few days. Apple is replacing them with Seagate drives,
not that that matters. Here's the script:

def dd_test():
import os
import time
print
print "DDing first partition to second partition... please wait."
fp = os.popen("/bin/dd if=/dev/disk0s3 of=/dev/disk0s5", "r")
fp
fp.close()
print "DD has completed."
print
print "Formatting first partition UFS"
print
fp1 = os.popen("/sbin/newfs /dev/disk0s3", "r")
fp1
fp1.close()
print
print "Formatting second partition UFS"
print
fp2 = os.popen("/sbin/newfs /dev/disk0s5", "r")
fp2
fp2.close()
print "Sleeping 60 seconds before starting again..."
print
time.sleep(60)
dd_test()
dd_test()

# Make two equal sized partitions on Mac internal HDD.
# Unmount the internal HDD, boot from firewire drive
# and run script.
# Used 'pdisk /dev/disk0 -dump' to get info about drive.
# Used 'newfs /dev/disk0s3' to format a partition UFS.

Jul 18 '05 #1
1 3386

Bart> A bit off topic, but here goes: Does this look like a reasonable
Bart> hard drive stress-test?

...

Bart> fp1 = os.popen("/sbin/newfs /dev/disk0s3", "r")
...
Bart> fp2 = os.popen("/sbin/newfs /dev/disk0s5", "r")
...

My guess is that newfs isn't all that random in its behavior, nor that it
touches all that much of the disk. I think it mostly lays down inode
structure. I doubt it even zeroes out the data chunks. You might want to
do something like build multiple copies of some huge program (Emacs? GCC?
Gimp? Darwin kernel?) in parallel, while constantly creating and deleting a
bunch of large files stuffed with random bits.

Skip

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rick | last post by:
Hello, I ran Microsoft's free "Web Application Stress" tool to see how asp.net/c# performed against html. Are these results typical? Network: WAS ran on a server with a t3 Internet...
4
by: martin carmichael | last post by:
Hello, I am wondering how aspnet developers do their web stress on ASPNET apps .. I would like to run mine with apache JMeter, a well-known open source tool. Unfortunately, it does not works...
7
by: cpnet | last post by:
I'm trying to stress-test some controls I've built in a sample web app using ACT. I'm now using IIS on my SBS 2k3 machine as my webserver for the test, and ACT is running on my XP Pro (sp1)...
2
by: Mardy | last post by:
I need to stress test an asp.net application but I don't have the Microsoft Application Center Test tool. Does anybody know of a good FREE tool that I can use to stress test my application? ...
3
by: Darkstar 3D | last post by:
If you want to stress test your Apache/PHP server just have a small little typo like this: $errCodes=range(910000,9100005); in your code instead of $errCodes=range(910000,910005); Some...
1
by: MSG Servicos de Informatica | last post by:
Hi! I'm having a problem with web stress test. I'm using an tool made by Microsoft called 'Microsoft Application Web Stress Tool'. My aplication was made in ASP .NET with C# in Visual Studio...
0
by: Phase 3 team | last post by:
Hi Can someone define in the WAS tool Concurrent connections - Stress Level (Threads) ? I am trying to test a healthy website which has the following: 2.5 mil hits a day, (concurrent...
4
by: FFMG | last post by:
Hi, I want to stress test my dev box to see where the bottle necks in my script might be. I don't really need to test MySQL or Apache, (I have no doubt they are working fine), but rather want...
6
by: tvnaidu | last post by:
Hi: Any stress test html script to test web page contains few radio buttons and apply. I have web page contains 8 radio buttons, just select on / off using radio button, then at the bottom, click on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.