Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1212

On MDS startup upon client connection mdt_xx threads Consume All Available CPU

Details

    • 3
    • 4687

    Description

      Found during IR testing at ORNL.

      On MDS startup soon after clients start hitting it, all mdt_xx threads are starting to use all cpu there is.

      we tried to sysrq-t and all of them are in grow_rqbd
      I checked the code and as soon as the thread is in that state, there is a unbreakable loop, that does 64*numonlinecpus(=16) = 1024 allocations of 16k in size.

      the condition to enter there is racy the num posted rqbds < nbuf_group/2
      so if 1000 of them would enter there at one time, we have 1000 threads doing 1024 of those allocations

      we have kdump log, but it still needs to be transported.

      Attachments

        Issue Links

          Activity

            [LU-1212] On MDS startup upon client connection mdt_xx threads Consume All Available CPU

            Integrated in lustre-dev » x86_64,client,el6,inkernel #340
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49)

            Result = SUCCESS
            Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-dev » x86_64,client,el6,inkernel #340 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49) Result = SUCCESS Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49 Files : lustre/ptlrpc/service.c

            Integrated in lustre-dev » x86_64,server,el5,inkernel #340
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49)

            Result = SUCCESS
            Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-dev » x86_64,server,el5,inkernel #340 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49) Result = SUCCESS Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49 Files : lustre/ptlrpc/service.c

            Integrated in lustre-dev » i686,client,el5,inkernel #340
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49)

            Result = SUCCESS
            Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-dev » i686,client,el5,inkernel #340 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49) Result = SUCCESS Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49 Files : lustre/ptlrpc/service.c

            Integrated in lustre-dev » x86_64,server,el6,inkernel #340
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49)

            Result = SUCCESS
            Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-dev » x86_64,server,el6,inkernel #340 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49) Result = SUCCESS Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49 Files : lustre/ptlrpc/service.c

            Integrated in lustre-dev » i686,server,el5,inkernel #340
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49)

            Result = SUCCESS
            Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-dev » i686,server,el5,inkernel #340 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49) Result = SUCCESS Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49 Files : lustre/ptlrpc/service.c

            Integrated in lustre-dev » i686,client,el6,inkernel #340
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49)

            Result = SUCCESS
            Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-dev » i686,client,el6,inkernel #340 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49) Result = SUCCESS Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49 Files : lustre/ptlrpc/service.c

            Integrated in lustre-dev » x86_64,client,el5,inkernel #340
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49)

            Result = SUCCESS
            Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-dev » x86_64,client,el5,inkernel #340 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 53402f0c0280425a1390a0c13840a750eb8c0a49) Result = SUCCESS Oleg Drokin : 53402f0c0280425a1390a0c13840a750eb8c0a49 Files : lustre/ptlrpc/service.c

            Integrated in lustre-b2_1 » i686,client,el5,inkernel #41
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 67b5f9305a080885c9a2a2bc08d07e4e227308e4)

            Result = SUCCESS
            Oleg Drokin : 67b5f9305a080885c9a2a2bc08d07e4e227308e4
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b2_1 » i686,client,el5,inkernel #41 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 67b5f9305a080885c9a2a2bc08d07e4e227308e4) Result = SUCCESS Oleg Drokin : 67b5f9305a080885c9a2a2bc08d07e4e227308e4 Files : lustre/ptlrpc/service.c

            Integrated in lustre-b2_1 » x86_64,client,el5,ofa #41
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 67b5f9305a080885c9a2a2bc08d07e4e227308e4)

            Result = SUCCESS
            Oleg Drokin : 67b5f9305a080885c9a2a2bc08d07e4e227308e4
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b2_1 » x86_64,client,el5,ofa #41 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 67b5f9305a080885c9a2a2bc08d07e4e227308e4) Result = SUCCESS Oleg Drokin : 67b5f9305a080885c9a2a2bc08d07e4e227308e4 Files : lustre/ptlrpc/service.c

            Integrated in lustre-b2_1 » i686,server,el5,ofa #41
            LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 67b5f9305a080885c9a2a2bc08d07e4e227308e4)

            Result = SUCCESS
            Oleg Drokin : 67b5f9305a080885c9a2a2bc08d07e4e227308e4
            Files :

            • lustre/ptlrpc/service.c
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b2_1 » i686,server,el5,ofa #41 LU-1212 ptlrpc: ptlrpc_grow_req_bufs is racy (Revision 67b5f9305a080885c9a2a2bc08d07e4e227308e4) Result = SUCCESS Oleg Drokin : 67b5f9305a080885c9a2a2bc08d07e4e227308e4 Files : lustre/ptlrpc/service.c

            People

              liang Liang Zhen (Inactive)
              ian Ian Colle (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: