Re: mdadm memory leak?

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

 



On Wed, 6 Jul 2005, Neil Brown wrote:
On Tuesday July 5, eric@xxxxxxxxxx wrote:
<snip>
  Active / Total Objects (% used)    : 12080357 / 12132001 (99.6%)
  Active / Total Slabs (% used)      : 176776 / 176776 (100.0%)
  Active / Total Caches (% used)     : 66 / 101 (65.3%)
  Active / Total Size (% used)       : 668099.80K / 671784.20K (99.5%)
  Minimum / Average / Maximum Object : 0.01K / 0.05K / 128.00K

   OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME
6013634 6013300  99%    0.02K  26609      226    106436K biovec-1
6013306 6013297  99%    0.09K 146666       41    586664K bio

These two lines point to the problem - it is a leak of 'bio's.

This patch fixes it.

### Diffstat output
./drivers/md/md.c |    1 +
1 files changed, 1 insertion(+)

diff ./drivers/md/md.c~current~ ./drivers/md/md.c
--- ./drivers/md/md.c~current~	2005-06-30 11:07:38.000000000 +1000
+++ ./drivers/md/md.c	2005-06-28 13:02:04.000000000 +1000
@@ -338,6 +338,7 @@ static int super_written(struct bio *bio

	if (atomic_dec_and_test(&rdev->mddev->pending_writes))
		wake_up(&rdev->mddev->sb_wait);
+	bio_put(bio);
	return 0;
}

Which kernel is that against? It doesn't apply against my 2.6.10-as7
nor David Kowis' 2.6.12.1 and 2.6.11.12 kernel source trees
(I don't even have the super_written function the patch is referring
to)?

-sandalle

--
Eric Sandall                     |  Source Mage GNU/Linux Developer
eric@xxxxxxxxxx                  |  http://www.sourcemage.org/
http://eric.sandall.us/          |  SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/  #196285  |  http://www.shock.wsu.edu/
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux