@@ -514,46 +514,39 @@ def generate_mask(cores):
514514def calculate_pool_count (alceml_count , number_of_distribs , cpu_count , poller_count ):
515515 '''
516516 Small pool count Large pool count
517- Create JM 256 32 For each JM
517+ Create JM 32 For each JM
518518
519- RAID 256 32 2 one for raid of JM and one for raid of ditribs
519+ RAID 32 2 one for raid of JM and one for raid of ditribs
520520
521- Create Alceml 256 32 For each Alceml
521+ Create Alceml 32 For each Alceml
522522
523- Create Distrib 256 32 For each distrib
523+ Create Distrib 32 For each distrib
524524
525- First Send cluster map 256 32 Calculated or one time
525+ First Send cluster map 32 Calculated or one time
526526
527527 NVMF transport TCP 127 * poll_groups_mask||CPUCount + 384 15 * poll_groups_mask||CPUCount + 384 Calculated or one time
528528
529529 Subsystem add NS 128 * poll_groups_mask||CPUCount 16 * poll_groups_mask||CPUCount Calculated or one time
530530
531531 ####Create snapshot 512 64 For each snapshot
532532
533- ####Clone lvol 256 32 For each clone
533+ ####Clone lvol 32 For each clone
534534
535535 '''
536536 poller_number = poller_count if poller_count else cpu_count
537537
538538 small_pool_count = 384 * (alceml_count + number_of_distribs + 3 + poller_count ) + (
539- 6 + alceml_count + number_of_distribs ) * 256 + poller_number * 127 + 384 + 128 * poller_number + constants .EXTRA_SMALL_POOL_COUNT
539+ 6 + alceml_count + number_of_distribs ) * + poller_number * 127 + 384 + 128 * poller_number + constants .EXTRA_SMALL_POOL_COUNT
540540 large_pool_count = 48 * (alceml_count + number_of_distribs + 3 + poller_count ) + (
541541 6 + alceml_count + number_of_distribs ) * 32 + poller_number * 15 + 384 + 16 * poller_number + constants .EXTRA_LARGE_POOL_COUNT
542542
543- return int (4.0 * small_pool_count ), int (2.5 * large_pool_count )
543+ return int (small_pool_count ), int (large_pool_count )
544544
545545
546546def calculate_minimum_hp_memory (small_pool_count , large_pool_count , lvol_count , max_prov , cpu_count ):
547- '''
548- 1092 (initial consumption) + 4 * CPU + 1.0277 * POOL_COUNT(Sum in MB) + (25) * lvol_count
549- then you can amend the expected memory need for the creation of lvols (6MB),
550- connection number over lvols (7MB per connection), creation of snaps (12MB),
551- extra buffer 2GB
552- return: minimum_hp_memory in bytes
553- '''
547+
554548 pool_consumption = (small_pool_count * 8 + large_pool_count * 128 ) / 1024 + 1092
555- memory_consumption = (4 * cpu_count + 1.0277 * pool_consumption + 25 * lvol_count ) * (1024 * 1024 ) + (
556- 250 * 1024 * 1024 ) * 1.1 * convert_size (max_prov , 'TiB' ) + constants .EXTRA_HUGE_PAGE_MEMORY
549+ memory_consumption = (4 * cpu_count + 1.1 * pool_consumption + 22 * lvol_count ) * (1024 * 1024 ) + constants .EXTRA_HUGE_PAGE_MEMORY
557550 return int (1.2 * memory_consumption )
558551
559552
0 commit comments