Author Topic: (SOLVED) Flash Drive observation  (Read 5061 times)

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
(SOLVED) Flash Drive observation
« on: October 25, 2011, 03:28:39 PM »
Observation:

When I run LXDE on a Kingston 16 GB flash drive there is almost
no discernable difference in operation from running  it on my
/dev/sda1 SSD.

When I run LXDE on the same model flash drive but only 8 GB capacity
a definite slowdown is observed.  

Speed tests on both are over 18 MB/second read speed.  

Is there a way to determine the drive cache size ?   Kingston spec sheet
doesn't give that info.   If the 16 GB has a 64k cache and the 8 GB
only has a 8k cache, I'd have to place my bet that's the reason.   I've
read where flash drive caches were small, but I can't find the info today
and I'm trying to find out the reason for this major difference in operation
performance.   The 16 GB's are running fine, even with KDE, but of course,
they cost twice as much.

THX
« Last Edit: November 20, 2011, 04:36:38 PM by Ferdes Fides »
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Flash Drive observation
« Reply #1 on: October 25, 2011, 03:34:50 PM »
lshw is just one possible way.

*-cache:1
             description: L2 cache
             physical id: 6
             slot: L2-Cache
             size: 512KiB
             capacity: 1MiB
             capabilities: pipeline-burst internal varies

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Flash Drive observation
« Reply #2 on: October 25, 2011, 03:54:53 PM »
lshw is just one possible way.

*-cache:1
             description: L2 cache
             physical id: 6
             slot: L2-Cache
             size: 512KiB
             capacity: 1MiB
             capabilities: pipeline-burst internal varies



Hi,

I actually ran that program thru the systeminfo program but
that info wasn't there.   I'll try it again then, maybe I missed it.

THX
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Flash Drive observation
« Reply #3 on: October 25, 2011, 03:56:47 PM »
lshw | less

so you can pause the output.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Flash Drive observation
« Reply #4 on: October 25, 2011, 04:09:53 PM »
lshw is just one possible way.

*-cache:1
             description: L2 cache
             physical id: 6
             slot: L2-Cache
             size: 512KiB
             capacity: 1MiB
             capabilities: pipeline-burst internal varies



lshw is actually listing only CPU(s) cache ... FF is searching info about USB flash drive cache ...  ;)

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Flash Drive observation
« Reply #5 on: October 25, 2011, 04:10:52 PM »
lshw is just one possible way.

*-cache:1
             description: L2 cache
             physical id: 6
             slot: L2-Cache
             size: 512KiB
             capacity: 1MiB
             capabilities: pipeline-burst internal varies



Hi,

I'm reading that info as CPU info.    Nothing in the
lshw output regarding the cache or buffers for USB's that
are attached.

FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Flash Drive observation
« Reply #6 on: October 25, 2011, 04:15:17 PM »
Sorry. Didn't catch that. Yeah, the disk descriptions for the hard drives don't show the cache size.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Flash Drive observation
« Reply #7 on: October 25, 2011, 04:17:41 PM »

lshw is actually listing only CPU(s) cache ... FF is searching info about USB flash drive cache ...  ;)


Hi,

What's the exact terminal command then.   I'm not
getting the right output with lshw -FF

Sorry,

Thanks a bunch.
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10690
  • MLUs Forever!
Re: Flash Drive observation
« Reply #8 on: October 25, 2011, 04:22:30 PM »

lshw is actually listing only CPU(s) cache ... FF is searching info about USB flash drive cache ...  ;)


Hi,

What's the exact terminal command then.   I'm not
getting the right output with lshw -FF

Sorry,

Thanks a bunch.

FF .......  is you   :D  :D

...  an interesting observation about the speed of operation ......  looking forward to some indication of what is causing it  ;)
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Flash Drive observation
« Reply #9 on: October 25, 2011, 04:22:42 PM »

lshw is actually listing only CPU(s) cache ... FF is searching info about USB flash drive cache ...  ;)


Hi,

What's the exact terminal command then.   I'm not
getting the right output with lshw -FF

Sorry,

Thanks a bunch.

LOL!  :D

my post was a direct reply to djohnstonpost, and I have used FF as a shorts of Ferdes Fides.

My apologies! ;)

AS

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Flash Drive observation
« Reply #10 on: October 25, 2011, 04:25:23 PM »
hdparm will give you the info. Run it as root or you'll get device permission errors. This is what I did to show the info on one of my drives:

#hdparm -I /dev/sdc | grep cache/buffer
cache/buffer size  = 16384 KBytes


hdparm -I /dev/sdc will show you everyhting on the drive you're checking. Substitute your USB drive's designation.



Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Flash Drive observation
« Reply #11 on: October 25, 2011, 04:28:17 PM »
hdparm will give you the info. Run it as root or you'll get device permission errors. This is what I did to show the info on one of my drives:

#hdparm -I /dev/sdc | grep cache/buffer
cache/buffer size  = 16384 KBytes


hdparm -I /dev/sdc will show you everyhting on the drive you're checking. Substitute your USB drive's designation.





Unfortunately hdparm doesn't appear to get the info when using my Kingston-G3 8GB:
Quote
# hdparm -I /dev/sdc

/dev/sdc:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

ATA device, with non-removable media
Standards:
        Likely used: 1
Configuration:
        Logical         max     current
        cylinders       0       0
        heads           0       0
        sectors/track   0       0
        --
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:           0 MBytes
        device size with M = 1000*1000:           0 MBytes
        cache/buffer size  = unknown
Capabilities:
        IORDY not likely
        Cannot perform double-word IO
        R/W multiple sector transfer: not supported
        DMA: not supported
        PIO: pio0

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10690
  • MLUs Forever!
Re: Flash Drive observation
« Reply #12 on: October 25, 2011, 04:29:47 PM »
Code: [Select]
# hdparm -I /dev/sdm | grep cache/buffer
SG_IO: bad/missing sense data, sb[]:  f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        cache/buffer size  = unknown

:(
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Flash Drive observation
« Reply #13 on: October 25, 2011, 04:34:06 PM »
What a gyp! Just tried my thumb drive with same result. Does a USB flash drive have a cache chip? I'm beginning to wonder.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Flash Drive observation
« Reply #14 on: October 25, 2011, 04:41:45 PM »
What a gyp! Just tried my thumb drive with same result. Does a USB flash drive have a cache chip? I'm beginning to wonder.


Well I'll just keep drilling and searching a little
bit till I solve this cache question.  Only possible
factor causing the slower speed I can think of.
The larger flash's must have larger caches but
I need to prove it !   See if a google search
has something relevant now.

Thanks for the response(s)


Ferdes Fides
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE