LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2011, 06:23 AM   #1
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Rep: Reputation: 3
browsing with linux much slower than windows


Hello everybody
I have a big archive with about 10000 documents in a usb stick.
What I have noticed is that browsing of that archive with gnome is much slower with ubuntu than winXP ( dual boot , same PC ) where it is almost instant
I have disabled assistive technologies and installed Thunar file browser. It improved things but again the lag is important.
Linux is in general much faster than windows, so I wonder why is it happening ? Am I missing something? Any suggestions?
Thank you
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-01-2011, 07:57 AM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Quote:
Originally Posted by joham34 View Post
Hello everybody
I have a big archive with about 10000 documents in a usb stick.
What I have noticed is that browsing of that archive with gnome is much slower with ubuntu than winXP ( dual boot , same PC ) where it is almost instant
I have disabled assistive technologies and installed Thunar file browser. It improved things but again the lag is important.
Linux is in general much faster than windows, so I wonder why is it happening ? Am I missing something? Any suggestions?
Thank you
I'm not too familiar with Thunar, I usually just stick with Nautilus and haven't had any problems. Try using a "compact" or "list" view so the file browser doesn't try generating thumbnail images for everything.
 
Old 01-01-2011, 09:07 AM   #3
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by dudeman41465 View Post
I'm not too familiar with Thunar, I usually just stick with Nautilus and haven't had any problems. Try using a "compact" or "list" view so the file browser doesn't try generating thumbnail images for everything.
I use list view anyway. Nautilus is slower than Thunar at least for me but I continue using Nautilus at times as well
What intrigues me is that with "gnome search tool " , location of the file is rapid but when i just click on the archive it takes about 15 secs before I get the list. I dont use windows anymore but I just tried the same in my daugthers PC with WinXP. The browsing didnt take longer than 2 secs .
 
Old 01-01-2011, 09:44 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
MAYBE it is your usb configuration. If it is falling back to 1.0 rather than 2.0 it would behave like you are describing.
 
Old 01-01-2011, 10:01 AM   #5
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by lazlow View Post
MAYBE it is your usb configuration. If it is falling back to 1.0 rather than 2.0 it would behave like you are describing.
Well, I hadnt thought this possibility , my pc is a new one . How can I check my usb configuration?
 
Old 01-01-2011, 10:39 AM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
There are probably a lot of people that will be able to help you on this one much better than I can, but I would use lshw. It should be in most distros software repos. It will give you a section something like:

Quote:
*-usb:1
description: USB Controller
product: CK804 USB Controller
vendor: nVidia Corporation
physical id: 2.1
bus info: pci@0000:00:02.1
version: a3
width: 32 bits
clock: 66MHz
capabilities: debug pm ehci bus_master cap_list
configuration: driver=ehci_hcd latency=0 maxlatency=1 mingnt=3
resources: irq:217 memory:feb00000-feb000ff
*-usbhost
product: EHCI Host Controller
vendor: Linux 2.6.18-194.26.1.el5 ehci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 2.06
capabilities: usb-2.00
configuration: driver=hub slots=10 speed=480.0MB/s
The important bit being the last two lines.

Edit: vs

Quote:
*-usb:0
description: USB Controller
product: CK804 USB Controller
vendor: nVidia Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: a2
width: 32 bits
clock: 66MHz
capabilities: pm ohci bus_master cap_list
configuration: driver=ohci_hcd latency=0 maxlatency=1 mingnt=3
resources: irq:225 memory:d8004000-d8004fff
*-usbhost
product: OHCI Host Controller
vendor: Linux 2.6.18-194.26.1.el5 ohci_hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=10 speed=12.0MB/s

Last edited by lazlow; 01-01-2011 at 10:42 AM.
 
Old 01-01-2011, 03:31 PM   #7
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
Ok , I did :
lshw

*-usb:0
description: USB Controller
product: N10/ICH 7 Family USB UHCI Controller #1
vendor: Intel Corporation
physical id: 1d
bus info: pci@0000:00:1d.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: driver=uhci_hcd latency=0
resources: irq:23 ioport:c480(size=32)
*-usb:1
description: USB Controller
product: N10/ICH 7 Family USB UHCI Controller #2
vendor: Intel Corporation
physical id: 1d.1
bus info: pci@0000:00:1d.1
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: driver=uhci_hcd latency=0
resources: irq:19 ioport:c800(size=32)
*-usb:2
description: USB Controller
product: N10/ICH 7 Family USB UHCI Controller #3
vendor: Intel Corporation
physical id: 1d.2
bus info: pci@0000:00:1d.2
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: driver=uhci_hcd latency=0
resources: irq:18 ioport:c880(size=32)
*-usb:3
description: USB Controller
product: N10/ICH 7 Family USB UHCI Controller #4
vendor: Intel Corporation
physical id: 1d.3
bus info: pci@0000:00:1d.3
version: 01
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master
configuration: driver=uhci_hcd latency=0
resources: irq:16 ioport:cc00(size=32)
*-usb:4
description: USB Controller
product: N10/ICH 7 Family USB2 EHCI Controller
vendor: Intel Corporation
physical id: 1d.7
bus info: pci@0000:00:1d.7
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm debug ehci bus_master cap_list
configuration: driver=ehci_hcd latency=0


I cant figure out if it is USB 1 or 2 but frequency in my case is 33MHz , not 66 like yours .
Any clue?

Last edited by joham34; 01-01-2011 at 03:33 PM.
 
Old 01-01-2011, 03:41 PM   #8
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 139

Rep: Reputation: 27
Windows determines the file type by looking at the three-letter extension in the file name. That takes very little time.

Linux doesn't have an absolutely standardized convention for file name extensions, and file names often don't have extensions at all. As a result, Linux file managers and the 'file' program must read part of the file contents to determine the file type. For this reason, Thunar can take a while to open a folder containing thousands of files.
Ed
 
2 members found this post helpful.
Old 01-01-2011, 03:52 PM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
With the stick plugged in try:

Quote:
cat /proc/bus/usb/devices
It should produce results like:

Quote:
[fred@localhost ~]$ cat /proc/bus/usb/devices

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh=10
B: Alloc= 14/900 us ( 2%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.18-194.26.1.el5 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:02.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c51b Rev=46.00
S: Manufacturer=Logitech
S: Product=USB Receiver
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh=10
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.18-194.26.1.el5 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:02.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=114 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1058 ProdID=0403 Rev= 6.02
S: Manufacturer=Western Digital
S: Product=External HDD
S: SerialNumber=57442D5743414C3738313637383637
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
What you are interested in is "Spd=". One of mine is 480 which is a USB hard drive, the other two are mice(one wired, one wireless). You may want to do this just before and just after mounting to make it easier to tell(for sure) which is which.

EdGr may also have a point.
 
Old 01-02-2011, 04:55 AM   #10
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by EdGr View Post
Windows determines the file type by looking at the three-letter extension in the file name. That takes very little time.

Linux doesn't have an absolutely standardized convention for file name extensions, and file names often don't have extensions at all. As a result, Linux file managers and the 'file' program must read part of the file contents to determine the file type. For this reason, Thunar can take a while to open a folder containing thousands of files.
Ed
Well , it makes sense and propably this is the reason for the delay and not the USB config. I copied my archive in the hard disk and delay is similar.
It doesnt really bother that much but I wonder if there is some way to inform Thunar or Nautilus that in a specific location all files are texts , so there it doesnt need to read part of them .
 
Old 01-02-2011, 06:04 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi joham34,

this is a very interesting issue. I'd recommend to browse the files on the commandline.

If you could provide information about what you want to do with the files (e.g. copying, renaming or deleting), it would help to point you to the adequate tools and commands.

Markus
 
Old 01-02-2011, 11:24 AM   #12
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 139

Rep: Reputation: 27
I haven't found a way to prevent Thunar from scanning the files to determine the type.

I agree with markush - 'ls' may be the best option.
Ed
 
Old 01-02-2011, 11:41 AM   #13
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
well thank you for your answers.
I am a doctor and those files are medical records , created as openoffice documents. I have a standard document template which I save as the name and birthdate and also the disease of the patient I then write my comments in to the files or copy scanned notes in them . I have to open the record in every visit , write and paste scanned images in it and also sometimes renaming it in every visit.
Ok, I use ls but it is not very practical all the time and also my secretary has no idea about command line , she hardly uses graphical tools .
I am very happy with linux since I switced from the windows, may be it is the only Linux real weakness I have encountered so far.
Might be an idea to create a big archive like mine ( using the command line you can create thousands of files in a directory within seconds ) and then see for yourself what I mean .
It would be great for Linux if there was a way to overcome the problem.
Wating forward to your replies

Last edited by joham34; 01-02-2011 at 11:50 AM.
 
Old 01-02-2011, 11:53 AM   #14
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 14.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by lazlow View Post
With the stick plugged in try:



It should produce results like:



What you are interested in is "Spd=". One of mine is 480 which is a USB hard drive, the other two are mice(one wired, one wireless). You may want to do this just before and just after mounting to make it easier to tell(for sure) which is which.

EdGr may also have a point.
Dear Lazlow thank you for your interest in helping me. I did as you said and usb speed is OK . As a matter of fact I copied my archive in my hard disc and I get almost the same delay , so the problem must be elsewhere.
 
Old 01-02-2011, 11:57 AM   #15
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 139

Rep: Reputation: 27
An easy solution would be to create a number of subdirectories, say alphabetically by name. Each subdirectory would have much fewer files.

You really want a database, but that would require a lot of work to set up.
Ed
 
  


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
Is it me or Linux is slower than Windows... LegendBreath Linux - Software 22 05-25-2005 11:10 AM
Why Linux is slower than Windows Almazick General 20 09-24-2004 07:13 PM
Internet Slower in Linux than Windows njbrain Linux - Networking 18 04-29-2004 02:12 PM
Linux slower than Windows? fedivh Linux - General 22 12-23-2003 12:31 AM
Linux slower than Windows NT plisken Linux - Networking 5 04-07-2002 07:26 AM


All times are GMT -5. The time now is 05:04 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration