Re: NEC720101_2.6.22.9_memory_leak

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

 



On Mon, 2010-02-22 at 10:42 -0500, Alan Stern wrote:
> [You should use Reply-To-All so that your messages appear on the 
> mailing list.]
> 
Sorry.
> On Mon, 22 Feb 2010, nogradi wrote:
> 
> > Thank You for your help.
> > I think it is an error, because
> > the Slab grows permanently after a 
> > plug_in/plug_out sequence.
> 
> There's nothing wrong with that.  Slab memory is allocated when the
> kernel communicates with the USB devices, and it remains allocated for
> use with the next device you plug in.
> 
> > After an insmod/rmmod ohci_hcd.ko 
> > sequence Slab grows too.(with 16 kB).
> 
I made the following test:
(option.ko isn't loaded)
cat /proc/meminfo
MemTotal:        62048 kB
MemFree:         54140 kB
Buffers:             0 kB
Cached:           2992 kB
SwapCached:          0 kB
Active:           1464 kB
Inactive:         1912 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:         404 kB
Mapped:            868 kB
Slab:             1696 kB
SReclaimable:      388 kB
SUnreclaim:       1308 kB
PageTables:         72 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:     31024 kB
Committed_AS:     2716 kB
VmallocTotal:   958464 kB
VmallocUsed:     16752 kB

while true
do
  insmod ohci-hcd.ko
  sleep 20
  rmmod ohci-hcd.ko
  sleep 3
done
(I shot this script after rmmod down)

cat /proc/meminfo
MemTotal:        62048 kB
MemFree:         52244 kB
Buffers:             0 kB
Cached:           3208 kB
SwapCached:          0 kB
Active:           1676 kB
Inactive:         1916 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:         404 kB
Mapped:            868 kB
Slab:             3372 kB
SReclaimable:     1844 kB
SUnreclaim:       1528 kB
PageTables:         72 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:     31024 kB
Committed_AS:     2716 kB
VmallocTotal:   958464 kB
VmallocUsed:     16752 kB
 
is it correct?
Thank You for Your help,
best regards Peter Nogradi
> Please provide more details.  Which slab grows?  If you insmod/rmmod 
> ohci-hcd multiple times, does the slab grow some more each time?
> 
> Alan Stern
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux