From 78800a4e773442e4fce77e8235ed47fd758beb29 Mon Sep 17 00:00:00 2001 From: Shrenuj Bansal <108157875+shrenujbansal@users.noreply.github.com> Date: Wed, 3 May 2023 12:28:03 -0400 Subject: [PATCH] fix: sealing: Make lotus-worker report GPU usage to miner during ReplicaUpdate task (#10806) * Make lotus-worker report GPU usage to miner during ReplicaUpdate task * make gen --------- Co-authored-by: Jacob Crowther --- build/openrpc/miner.json.gz | Bin 15923 -> 15944 bytes build/openrpc/worker.json.gz | Bin 5224 -> 5245 bytes documentation/en/api-v0-methods-miner.md | 56 +++++++++++----------- documentation/en/api-v0-methods-worker.md | 56 +++++++++++----------- storage/sealer/storiface/resources.go | 11 ++++- 5 files changed, 65 insertions(+), 58 deletions(-) diff --git a/build/openrpc/miner.json.gz b/build/openrpc/miner.json.gz index 6cd2c7e85a59e84d5e10fcd824630462706b470e..d253366ce093ce6bea888fbabb523274d0f51db3 100644 GIT binary patch delta 325 zcmV-L0lNOPe8_yT4LyHW4o|UD=!7?vbVGx<0%hb{yO0{B&}C-Jf<7Me5j8V zWw>ipXAXK%DbE}ZB`lg8+;#C7L;YL!!=O}bXH~(|1!nUQO1!Q!Bcfca%6xqATZYxf zGl-_EgC~mKDqSQMRK2aySoM~uSfO3TtEyrZbBl?u8@f#KoZ@mMSUiUiQw*zkl~)}k z(n6*FH$v(teO5hZdQ_^xH+zy4Vl~K4$Uv3$aq(A5UmaBY&l{gF&(#^dyNfJ$wPyV2 Xz<7N8^7#J(009607^JnJ9~J`u5M-dN delta 304 zcmV-00nh%(e6xJ84LyH8NO-25!jBjQv_mO0`Y1ssjy+MR&kj+2LJh<=30eziEugi4 z)&g1!{9syOLp=WubuIpNG?9)b(!yUy6TRqYqQ^(Svan|yk&SKljCTai?WioUU)%H} z_Hpok!h7-agR_y9O#40KSo|&i7gTRq%9y**t_2uj|Z+C>N_TA0PadVYTrLqUq}3iK4ek7fA(GZ)-GGy(KDE zXjk#7s#wL`V&dzDE>k?GxEu)<&mqJV!zy0oRR@W*P^tfokUC1A)tMfZYVggTB!yTF zvJ)~;rF~rdmC`6z2i5-b#^=j(bw=;*BFkN^89zEO9v{Cv{=WbK0RR6D@lQM-76Sl@ CdXZZI diff --git a/build/openrpc/worker.json.gz b/build/openrpc/worker.json.gz index 2468be53acb51956481c83a0f1aa59459f6d923e..f18be8337a5bbb775079f4bc768368a9099acb03 100644 GIT binary patch delta 5236 zcmV-)6pQQVDE%mq7XqL-kr^d_Bg#^&B*XxnSmNW5Jm>s=B#+2P$#D_!TvIxc)SlKG zNV0^<)R9geC5owyq!a0@Lzh0dI6nm+&(9=Tx<{Um9TMiyd+L#e?xnRXEfAeMmM@)L zKS~5HSk`}F8<`F!y^of4j**EZS+bCCdf2655#PUmpE);Vx+Ere=YwB={&KuKr77B~F z#6OV?Tpbj>F=C~Ch7`UB?{*JPp>3aimI3lS$9oSRZ^#YBQ{eZ`2t^)&_O^xK!v{dH z9VWS<9->Q+fL{oD$Q1W~UIxE<-fs@QT)M8~QDm_^YxYl+EvNiJ=&Daks%Udr_&@9M3!hEz~=XQC*sp-*V`w~;njYQq8>H^c$tVfEl!;48#A9a{k%;C)M&4kvczC zQr;&$!~*^}3ky^Svb4Y?_A5#pYWZ4@wY_`ZsDkhWG^f<{PmYggL6V;7ERLrUYdCT}hskwpGX`=zv7O2B0{Rqr$I!*c zuIKz%{of3c-pu*0uY-}+XKl)I4`x`W*y5xfQLZB9QN$v&{a8d)Yg;5@*QgDL$mb5b zO2STIRrxo6q#;W2B3*YDX@%<+u3Nb7MqIZ(C~)1*1F;=wg<}z!8J8E&6u>)`oH&jh z%o`Wby-p`$f-<&$n||@tF(DI>*ZpV2Z4C+XIwn4`6qCx1*m@TxmCOh#4G=3m2DU68 zf~1N0UM=&hs8kwz!t&VLp}xBK8uM^b>cGYM2-=u`%zWhCV-p?wL52RYe>7E8O+QjK z-RMiQ^iKpW7olMGrseL67_!J)VgiCF>K_>{x7r&v?x>>pL&?gn2!Ak z?Ip^2lc$eqq>OrQ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}JaW;0Hhr7KwtyT*@SBwv3QFc%xk$?2h$k(OGt<+>>8h-0R=T0% zR64OBg(ohgvtZ$}$Ky+f=bSw@l5|0O==!9LZl<%qn} zYr=ty$j`Fvl<0zLsG#bj5rm4-(fV3{uVWZvwKIm6(HUFHVB8yxHO(~kMvKxt7qP7I zY&O~}2zL7e`uCs1#V=0FjO8pOVF=n3`uBcNO?d5Lp)JPBJJbS`qBT#!GR>?=$D*s# z&0x3jL=%+k5Do7aL`kqQ373HPQ1CEgZTcM+SBH9U1QXi*CbWA{u>ZLp6W$Ad05|zc zrW%=nXEb_Y(x+9~lw(u!uK7lB@m%wccuNWvxuX=IbGuL!9f9z+xr5ibceEmZR#KY2 z%IsuqS4>OSrgi$X+A#$wjZk>qu>h|2Y%~aO<+Pqy&iy0ju89jR3t69*6rB?b z{n#8pv3?U&aD{)O;NXeej{|ytd)^2ZYe7?Scgao?$4!U;yov#M8N=9pU^`DlNc?_j z#ZdI2vF|O@JI|KL7;=Lx(duYM_Rxq|_q9g$00wa_fVfLb1gnZ*)!GQ>s33+YvSm)P z8Rg2KsBPRsG1ZHbl+e5=1sA*9O4Z0tPf=HGpErb~x;iwJy^*w?3aP151wl%GK}`R> zz=(3Hj)#`5b{{a91|Npaq=^3pq0RXpLFfjlC diff --git a/documentation/en/api-v0-methods-miner.md b/documentation/en/api-v0-methods-miner.md index 420e7ccd86c..4761a3eed7b 100644 --- a/documentation/en/api-v0-methods-miner.md +++ b/documentation/en/api-v0-methods-miner.md @@ -5208,7 +5208,7 @@ Response: "0": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -5217,7 +5217,7 @@ Response: "1": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -5226,7 +5226,7 @@ Response: "2": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -5235,25 +5235,25 @@ Response: "3": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "4": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "5": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -5262,7 +5262,7 @@ Response: "6": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -5271,7 +5271,7 @@ Response: "7": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -5280,18 +5280,18 @@ Response: "8": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "9": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 } @@ -5300,7 +5300,7 @@ Response: "0": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -5309,7 +5309,7 @@ Response: "1": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -5318,7 +5318,7 @@ Response: "2": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -5327,25 +5327,25 @@ Response: "3": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "4": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "5": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -5354,7 +5354,7 @@ Response: "6": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -5363,7 +5363,7 @@ Response: "7": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -5372,18 +5372,18 @@ Response: "8": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "9": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 } diff --git a/documentation/en/api-v0-methods-worker.md b/documentation/en/api-v0-methods-worker.md index dab251a7c7e..d7d0f092e06 100644 --- a/documentation/en/api-v0-methods-worker.md +++ b/documentation/en/api-v0-methods-worker.md @@ -1135,7 +1135,7 @@ Response: "0": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -1144,7 +1144,7 @@ Response: "1": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -1153,7 +1153,7 @@ Response: "2": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -1162,25 +1162,25 @@ Response: "3": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "4": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "5": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -1189,7 +1189,7 @@ Response: "6": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -1198,7 +1198,7 @@ Response: "7": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -1207,18 +1207,18 @@ Response: "8": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "9": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 } @@ -1227,7 +1227,7 @@ Response: "0": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -1236,7 +1236,7 @@ Response: "1": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -1245,7 +1245,7 @@ Response: "2": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -1254,25 +1254,25 @@ Response: "3": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "4": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "5": { "MinMemory": 2048, "MaxMemory": 2048, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 2048, @@ -1281,7 +1281,7 @@ Response: "6": { "MinMemory": 8388608, "MaxMemory": 8388608, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 8388608, @@ -1290,7 +1290,7 @@ Response: "7": { "MinMemory": 1073741824, "MaxMemory": 1073741824, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, "MaxParallelismGPU": 0, "BaseMinMemory": 1073741824, @@ -1299,18 +1299,18 @@ Response: "8": { "MinMemory": 4294967296, "MaxMemory": 4294967296, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 }, "9": { "MinMemory": 8589934592, "MaxMemory": 8589934592, - "GPUUtilization": 0, + "GPUUtilization": 1, "MaxParallelism": 1, - "MaxParallelismGPU": 0, + "MaxParallelismGPU": 6, "BaseMinMemory": 1073741824, "MaxConcurrent": 0 } diff --git a/storage/sealer/storiface/resources.go b/storage/sealer/storiface/resources.go index be5c34d0f0d..0fd80d79ab0 100644 --- a/storage/sealer/storiface/resources.go +++ b/storage/sealer/storiface/resources.go @@ -342,7 +342,9 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredSealProof]Resources MaxMemory: 8 << 30, MinMemory: 8 << 30, - MaxParallelism: 1, + MaxParallelism: 1, + MaxParallelismGPU: 6, + GPUUtilization: 1.0, BaseMinMemory: 1 << 30, }, @@ -350,7 +352,9 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredSealProof]Resources MaxMemory: 4 << 30, MinMemory: 4 << 30, - MaxParallelism: 1, + MaxParallelism: 1, + MaxParallelismGPU: 6, + GPUUtilization: 1.0, BaseMinMemory: 1 << 30, }, @@ -359,6 +363,7 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredSealProof]Resources MinMemory: 1 << 30, MaxParallelism: 1, + GPUUtilization: 1.0, BaseMinMemory: 1 << 30, }, @@ -367,6 +372,7 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredSealProof]Resources MinMemory: 2 << 10, MaxParallelism: 1, + GPUUtilization: 1.0, BaseMinMemory: 2 << 10, }, @@ -375,6 +381,7 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredSealProof]Resources MinMemory: 8 << 20, MaxParallelism: 1, + GPUUtilization: 1.0, BaseMinMemory: 8 << 20, },