Author Topic: My general help questions  (Read 21423 times)

0 Members and 1 Guest are viewing this topic.

Offline Smither

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 0
  • Gender: Male
  • Certified youtube browser
    • View Profile
    • Funky Bear Pie
    • Awards
Re: My general help questions
« Reply #60 on: May 30, 2010, 11:07:25 pm »
I was actually thinking more of "What can you do?" than "How fast?"

Offline Mad Penguin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1420
  • Karma: 10018
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: My general help questions
« Reply #61 on: May 30, 2010, 11:35:44 pm »
As in "how many things can you do at the same time?" ??

Offline Smither

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 0
  • Gender: Male
  • Certified youtube browser
    • View Profile
    • Funky Bear Pie
    • Awards
Re: My general help questions
« Reply #62 on: May 30, 2010, 11:57:07 pm »
No, just how fast you can get an application to run for how much effort and how you would go about it. I keep thinking back to that psychologist who wanted a super low latency program and you said about running programs without being in a Gnome or X-term or KDE or whatever session.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: My general help questions
« Reply #63 on: May 31, 2010, 12:25:44 am »
Surely dd isn't the best way to copy "files"... won't it also be copying empty blocks?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Mad Penguin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1420
  • Karma: 10018
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: My general help questions
« Reply #64 on: May 31, 2010, 01:18:44 am »
How fast you can copy files will be 99% dependant on your disk(s) unless you have a 'really' old machine.

Pretty much all computers in recent history are capable of DMA transfers. Essentially the cpu sends track , sector, byte count & memory location info to the disk controller, then goes off to do something else. The disk controller transfers the required information to the requested location, then sends an interrupt to the CPU to tell the computer the transfer is complete.

Note than in this scenario running a GUI etc is unlikely to have much impact on the time taken to copy files unless it's eating all the CPU .. it's all going to come down to your basic IO speed. (Something 'dd' is very good at measuring !)

GUI's only slow things down when your program produces output .. for example;

Quote
find / -ls

Will hammer your machine, not because of the disk IO, but because the work the machine is doing displaying the results and making your terminal scroll.

Try;

Quote
find / > /dev/null

And watch the difference.

Another good low-level test is;

Quote
hdparm -tT /dev/sda

Output from my workstation as an example;

#
Quote
hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   7632 MB in  2.00 seconds = 3817.41 MB/sec
 Timing buffered disk reads:  336 MB in  3.00 seconds = 111.99 MB/sec


Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18210
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: My general help questions
« Reply #65 on: May 31, 2010, 03:04:19 am »
Ahh... got ya... you were using dd to measure throughput, I thought you were suggesting it as a method :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal