Memory leak in ISCSI/pSCSI backend

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

 



Hi,

I'm not sure if this is the correct list to send this to. I've been
trying to set up ISCSI for a number of DVD-ROM drives using targetcli.
I have the initiator logging in and creating the device node
correctly, however when it reads from the device, the target system
rapidly chews up RAM until crashing.

Kernel version on target: 4.18.16, from kernel.org, no patches applied

I tested the pSCSI backend with a WD 120GB SSD as well, and found that
"file -s" on the initiator seemed to cause a slow memory leak on the
target, but "mkfs.ext4" again caused a rapid consumption of all RAM.

I also tested the IBLOCK backend on the same SSD and found no memory
leakage when running "mkfs.ext4" on the initiator.

I have the kernel set up to create a vmcore file but haven't worked
out where the debug symbols are to use it. So without being able to
debug the vmcore, I tried using the 120GB SSD as a swap partition to
see if the kernel chewed up swap as well as RAM. It doesn't. When a
read on the initiated DVD-ROM device, e.g. "file -s", happens, only
system RAM is consumed and swap is untouched.

Attached, you will find the output of targetcli for my desired
configuration of a single drive. I have another 4 to export from the
same system if I can get it working.

Please let me know if there's any more information you would like.

Thanks,
Ben Klein
o- / ......................................................................................................................... [...]
  o- backstores .............................................................................................................. [...]
  | o- block .................................................................................................. [Storage Objects: 0]
  | o- fileio ................................................................................................. [Storage Objects: 0]
  | o- pscsi .................................................................................................. [Storage Objects: 1]
  | | o- sr0 .................................................................................................. [/dev/sr0 activated]
  | o- ramdisk ................................................................................................ [Storage Objects: 0]
  o- iscsi ............................................................................................................ [Targets: 1]
  | o- iqn.2003-01.org.linux-iscsi.frankie.x8664:sn.7ff065e33228 ......................................................... [TPGs: 1]
  |   o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
  |     o- acls .......................................................................................................... [ACLs: 1]
  |     | o- iqn.1993-08.org.debian:kubrik ........................................................................ [Mapped LUNs: 1]
  |     |   o- mapped_lun1 ................................................................................... [lun1 pscsi/sr0 (rw)]
  |     o- luns .......................................................................................................... [LUNs: 1]
  |     | o- lun1 ........................................................................................... [pscsi/sr0 (/dev/sr0)]
  |     o- portals .................................................................................................... [Portals: 1]
  |       o- 192.168.9.1:3260 ................................................................................................. [OK]
  o- loopback ......................................................................................................... [Targets: 0]
  o- vhost ............................................................................................................ [Targets: 0]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux