Michael Leone on Thu, 22 Feb 2001 13:49:36 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Q about how much disk space /proc/bus/usb uses


----- Original Message -----
From: "John Kirk" <dystan@pac.net>
To: <plug@lists.phillylinux.org>
Sent: Thursday, February 22, 2001 1:38 PM
Subject: Re: [PLUG] Q about how much disk space /proc/bus/usb uses


> Hi Mike,
>
> On Thu, Feb 22, 2001 at 10:30:26AM -0500, Michael Leone wrote:
> > As the subject says ...
>
>   Well, I wouldn't assume _any_ "disk space" is being used,
> since /proc is only represented in the file space hierarchy
> as a convenience for access to information the kernel can
> provide about your operating environment.

Right; it's some kind of "virtual" file system or some such. But still ...
why so much? And is the amount shown unusual?
I mean, as Joe Welsh pointed out, his showed a size of 650M, with 1 USB
device. I have 3, so it seems not too unreasonable that mine show as larger.

>
> > Here's the odd part .. when I do a df -h, I see this:
> > [turgon@minas-aran turgon]$ df -h
> > Filesystem            Size  Used Avail Use% Mounted on
> > ... (detail elided)

"elided". Very cool! :-)

>   By the way, what do
>
>            "ls -alF /proc/bus/usb"
>      and   "ls -alF /proc/bus           show on your system?

[turgon@minas-aran turgon]$ ls -alF /proc/bus/usb
total 0
dr-xr-xr-x    1 root     root            0 Feb 20 22:52 ./
dr-xr-xr-x    4 root     root            0 Feb 20 22:52 ../
dr-xr-xr-x    1 root     root            0 Feb 20 22:52 001/
-r--r--r--    1 root     root            0 Feb 20 22:52 devices
-r--r--r--    1 root     root            0 Feb 20 22:52 drivers

>
>   Or other ways of viewing that part of /proc?   e.g.
>
>            "less /proc/bus/usb"
>
> since, I assume, it looks like an ASCII text file.

Nope.

[turgon@minas-aran turgon]$ less /proc/bus/usb
/proc/bus/usb is a directory

I can do a cat /proc/bus/usb/drivers

[turgon@minas-aran usb]$ cat drivers
         hid
 48- 63: usbscanner
  0- 15: usblp
         hub
         usbdevfs

(HID = Human Interface Device, aka joystick)

and cat-ting the /proc/bus/usb/drivers gives me about 40 lines of
specifications about my devices.

B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=d400

and so on.


--
---------------------------------------------------------
Email: turgon@mike-leone.com (personal)
PGP Fingerprint:   0A A8 DC 47 CB 63 AE 3F  C7 39 6B F9 9A B4 1E F6  5A A5
BC DF
Registered Linux User: #201348

"Pear Pimples for Hairy Fishnuts"
                             Opus the Penguin, Bloom County


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug