Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th March 2009, 03:25 PM
artu72 Offline
Registered User
 
Join Date: Mar 2007
Posts: 64
performance issues running Fedora from an USB pen

Hi to all,

I have succesfully installed lates fedora 10 /x86_64 respin on a computer on a USB pen, since I cannot modify the internal hard disk partition table. I have however noticed that, both in installation and in usage, the system, when accessing to usb drive where the root partition is located, freezes at regular time intervals, waits for about twenty seconds and then resumes. How can I prevent this performance issue due to some usb bus timeout ? In the system logs there is nothing related to usb problems, and the usb pen works properly as storage device.

The usb pen is a 16 GB sandisk cruzer (of course I have removed the U3 feature).

Thank you.
Reply With Quote
  #2  
Old 26th March 2009, 04:32 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
You can expect some performance issue, I don't think is as fast as a hard drive. Can you please post "df -hT" of the live system.

I'm interested in knowing the root device, is it /dev/sdX or /dev/ubX? Also can you run "hdparm -tT /dev/XXX" and report back.
Reply With Quote
  #3  
Old 27th March 2009, 02:59 PM
artu72 Offline
Registered User
 
Join Date: Mar 2007
Posts: 64
Quote:
Originally Posted by notageek View Post
You can expect some performance issue, I don't think is as fast as a hard drive. Can you please post "df -hT" of the live system.

I'm interested in knowing the root device, is it /dev/sdX or /dev/ubX? Also can you run "hdparm -tT /dev/XXX" and report back.
df-hT output:

/dev/sdb1 ext3 14G 3.0G 11G 23% /
tmpfs tmpfs 1001M 604K 1001M 1% /dev/shm
/dev/sr0 iso9660 4.1G 4.1G 0 100% /media/"FU 20090210 10 x86_64 DVD"


As you can see, the root partition is mounted over /dev/sdb1.

Here is hdparm -tT /dev/sdb1 output:

Timing cached reads: 2236 MB in 2.00 seconds = 1118.09 MB/sec
Timing buffered disk reads: 74 MB in 3.08 seconds = 24.04 MB/sec

that you compare with the hard disk performance:


hdparm -tT /dev/sda2

/dev/sda2:
Timing cached reads: 2090 MB in 2.00 seconds = 1044.92 MB/sec
Timing buffered disk reads: 226 MB in 3.03 seconds = 74.69 MB/sec

I am aware that an USB pen will not present same performances as an hard disk, but my problem is due to the frequent freezing of the system (hint: when this happens, the pdflush process is in D state).

Perhaps should I tune my ext3 filesystem with noatime option ?
Reply With Quote
  #4  
Old 27th March 2009, 04:40 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
I see that your reads are faster than your writes and infact read from the pendrive is faster than the hard-drive, hdparm report is independent of the filesystem, however you may try using noatime on ext3 and see if it improves your system performance.

You could also play with these values and see if it improves your performance. (Lower the better)


Code:
/proc/sys/vm/dirty_background_ratio
/proc/sys/vm/dirty_ratio
/proc/sys/vm/dirty_expire_centisecs
Also can you post "cat /proc/meminfo" before you try. Also post the values of the above.


Standard Disclaimer: I or Fedora Forum cannot be responsible for any of the commands borking your system and/or pendrive
Reply With Quote
  #5  
Old 27th March 2009, 04:49 PM
artu72 Offline
Registered User
 
Join Date: Mar 2007
Posts: 64
Quote:
Originally Posted by notageek View Post
I see that your reads are faster than your writes and infact read from the pendrive is faster than the hard-drive, hdparm report is independent of the filesystem, however you may try using noatime on ext3 and see if it improves your system performance.

You could also play with these values and see if it improves your performance. (Lower the better)


Code:
/proc/sys/vm/dirty_background_ratio
/proc/sys/vm/dirty_ratio
/proc/sys/vm/dirty_expire_centisecs
Also can you post "cat /proc/meminfo" before you try. Also post the values of the above.


Standard Disclaimer: I or Fedora Forum cannot be responsible for any of the commands borking your system and/or pendrive
I am fully aware regarding your last disclaimer !

The requested values follow (note that often the usb_storage processes goes in delayed state when the system freezes)

[root@ntmastellone yum.repos.d]# cat /proc/sys/vm/dirty_background_ratio
5
[root@ntmastellone yum.repos.d]# cat /proc/sys/vm/dirty_ratio
10
[root@ntmastellone yum.repos.d]# cat /proc/sys/vm/dirty_expire_centisecs
2999
[root@ntmastellone yum.repos.d]# cat /proc/meminfo
MemTotal: 2049948 kB
MemFree: 735792 kB
Buffers: 30228 kB
Cached: 514332 kB
SwapCached: 0 kB
Active: 741328 kB
Inactive: 375940 kB
SwapTotal: 1052248 kB
SwapFree: 1052248 kB
Dirty: 204 kB
Writeback: 0 kB
AnonPages: 572824 kB
Mapped: 91572 kB
Slab: 49384 kB
SReclaimable: 32972 kB
SUnreclaim: 16412 kB
PageTables: 21068 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2077220 kB
Committed_AS: 1228988 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 536932 kB
VmallocChunk: 34359199227 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 47100 kB
DirectMap2M: 2039808 kB
Reply With Quote
  #6  
Old 27th March 2009, 04:52 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Try this:

Code:
# echo 5 > /proc/sys/vm/dirty_ratio
Quote:
Originally Posted by artu72
note that often the usb_storage processes goes in delayed state when the system freezes
Its because your writes are slow.
Reply With Quote
  #7  
Old 27th March 2009, 04:59 PM
artu72 Offline
Registered User
 
Join Date: Mar 2007
Posts: 64
Quote:
Originally Posted by notageek View Post
Try this:

Code:
# echo 5 > /proc/sys/vm/dirty_ratio


Its because your writes are slow.
Great, that was the right trick !

Should now I tune my ext3 / parameters now, as you suggested ? noatime...

I will insert the echo in rc.local in order to do it at every boot...
Reply With Quote
  #8  
Old 27th March 2009, 05:24 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
You could give noatime a try, since your hardware is slow in writing, every possible way to limit IO will definitely benefit.
Reply With Quote
  #9  
Old 27th March 2009, 05:27 PM
artu72 Offline
Registered User
 
Join Date: Mar 2007
Posts: 64
Quote:
Originally Posted by notageek View Post
You could give noatime a try, since your hardware is slow in writing, every possible way to limit IO will definitely benefit.
Ok if I change from defaults to defaults,noatime ?
Reply With Quote
  #10  
Old 27th March 2009, 05:38 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
try "data=writeback" also and TBH if you don't need ext3 you can mount it as ext2, will give you faster performance. An existing ext3 filesystem can be used as ext2.

And yes defaults,noatime too.
Reply With Quote
Reply

Tags
fedora, issues, pen, performance, running, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reinstalling Fedora 10.... and running into some major issues the_fury Using Fedora 15 6th March 2009 02:34 AM
Fedora 9 Performance Issues soxfan Using Fedora 31 28th January 2009 05:28 AM
Fedora 9 Performance Issues... icanfly0307 Using Fedora 0 23rd January 2009 06:48 PM
Fedora 9 issues running programs roachy Using Fedora 3 29th May 2008 08:05 AM
Fedora and OS X via NFS Performance Issues gotTheShakes Using Fedora 4 19th September 2007 03:52 AM


Current GMT-time: 11:41 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat