RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 823820 - tgtadm: out of memory (255 LUNs and 8 targets)
Summary: tgtadm: out of memory (255 LUNs and 8 targets)
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scsi-target-utils
Version: 6.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-22 09:01 UTC by Bruno Goncalves
Modified: 2017-12-06 10:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 10:15:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tries to create 255 luns in 8 targets (2.05 KB, application/x-shellscript)
2012-05-22 09:01 UTC, Bruno Goncalves
no flags Details

Description Bruno Goncalves 2012-05-22 09:01:38 UTC
Created attachment 585970 [details]
tries to create 255 luns in 8 targets

Description of problem:
When trying to allocate 8 targets with 255 LUNs each, it failed with
out of memory error.

After it fails, the system still reports around 124Gb free

[root@storageqe-10 ~]# free -m
total used free shared buffers cached
Mem: 129027 2985 126042 0 57 395
-/+ buffers/cache: 2532 126495
Swap: 4095 0 4095

Version-Release number of selected component (if applicable):

rpm -q scsi-target-utils
scsi-target-utils-1.0.24-2.el6.x86_64

uname -r
2.6.32-272.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Get a server with 128GB (storageqe-10,11,12,13,14, for example)
2.Run the attached script

  
Actual results:
Starting SCSI target daemon: [ OK ]
tgtadm: out of memory
Command:
tgtadm -C 0 --lld iscsi --op new --mode logicalunit --tid 8 --lun 73 -b
/tmp/loop-disk-8-73
exited with code: 22.

Expected results:
tgtd should create all LUNs

Comment 1 RHEL Program Management 2012-07-10 07:01:58 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 2 RHEL Program Management 2012-07-11 01:54:28 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 3 RHEL Program Management 2012-09-07 05:23:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 5 Jan Kurik 2017-12-06 10:15:38 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/


Note You need to log in before you can comment on or make changes to this bug.