9:41

Fitting Four 32 GB Resizable Bars Behind a PCIe Switch on Linux

88096 16 , 9700 3090 , .

. (2), 32 . , 32 . , , . 32 256 .

, . , . , , (=0).

32 🔗

3090 , , 32 64 . .

7.0’ : ; 🔗

. , . , . 9700’ 32 , , , .

9700’ 32 , . , 256 . 2 .

128.6 . , 7.0 , 224 ( 64 32 ). 9700 , .

7.0.6. 7.4-1 ( ) .

Cartoon: a fenced parking lot under a sign reading switch window has four bays, each painted 32 GB. Two blue stretch limousines labelled R9700 are parked inside, each towing a small orange trailer labelled 2 MB that sits in its own bay, so the two of them fill the lot. Two more R9700 limos with trailers wait outside the gate, sweating. A grey robot attendant in a cap smiles at the gate holding a clipboard reading 4 x 32 GB = fits.

0800200000 32 2 , . : 3090’ 288 .

__() //.. , , .

, . 32 2 32 , 32 .

Three rows on one scale of the switch’s 64-bit window from 160 GB, with dashed lines at 224, 288, 352 and 416 GB. Legend: 32 GB BAR in blue, 2 MB doorbell as a dark sliver, padding in pale blue, got no BAR in orange, 3090 windows as grey slivers. The first row, What the kernel added up: 4 × (32 GB + 2 MB) + 2 × 288 MB = 128.6 GB, packs card 1 to card 4 end to end, each a 32 GB BAR plus its doorbell, and an orange dashed line marks window ends here just past 288 GB. The second row, Doorbell after each BAR, BARs on 32 GB boundaries: 224 GB, puts card 1 at 160 GB and card 2 at 224 GB with a dashed gap after each, while card 3 and card 4 sit past the end of the window in orange, with the note two R9700s placed, and the rest of the switch got nothing. The third row, The module’s padding: every window a multiple of its alignment, has each card followed by its doorbell and a padding block, card 1 to card 4 filling 160 to 416 GB, then two grey 3090 slivers, with the note each R9700 window exactly 64 GB, then two 3090 windows of 512 MB. Footer: Linux 7.0.6. Unpadded, the switch window was 0x2800000000-0x48247fffff. Doorbells and 3090 windows are drawn wider than to scale.

. , .

ä, , 14- , 5 6 . . , 9700 32 .

, , .

🔗

, =_= . 32 9700 , 512 , 32 4 .

, , . , .

. 64- 64- , . 9700 64 3090 512 . , .

9700 160, 224, 288, 352 , 3090 , .

(=__= 9700 ), 2 9700 14.0 / , 4 , 54.7 /.

🔗

  • . , .
  • , .
  • . .
  • , .
  • , .

. , , . , , , , .

🔗

  • ,
  • : , ä
  • : (5), , “: ” “: ”
  • //., __()
  • ___(), =_=