File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ const (
43
43
Other Product = iota
44
44
R6525
45
45
R7525
46
+ R6615
47
+ R7615
46
48
)
47
49
48
50
// DetectProduct detects product name.
@@ -57,6 +59,10 @@ func DetectProduct() (Product, error) {
57
59
return R6525 , nil
58
60
case strings .Contains (product , "R7525" ):
59
61
return R7525 , nil
62
+ case strings .Contains (product , "R6615" ):
63
+ return R6615 , nil
64
+ case strings .Contains (product , "R7615" ):
65
+ return R7615 , nil
60
66
default :
61
67
return Other , nil
62
68
}
Original file line number Diff line number Diff line change @@ -325,7 +325,21 @@ func (dc *dellConfigurator) configBIOS(ctx context.Context) error {
325
325
}
326
326
327
327
func (dc * dellConfigurator ) configPerformance (ctx context.Context ) error {
328
- return dc .enqueueConfig (ctx , "BIOS.SysProfileSettings.SysProfile" , "PerfPerWattOptimizedOs" )
328
+ product , err := lib .DetectProduct ()
329
+ if err != nil {
330
+ return err
331
+ }
332
+ switch product {
333
+ case lib .R6525 , lib .R7525 , lib .R7615 :
334
+ return dc .enqueueConfig (ctx , "BIOS.SysProfileSettings.SysProfile" , "PerfPerWattOptimizedOs" )
335
+ case lib .R6615 : // In 16G server, we cannot disable power saving function even if we set cpu-governor. We need set System Profile to Performance.
336
+ return dc .enqueueConfig (ctx , "BIOS.SysProfileSettings.SysProfile" , "PerfOptimized" )
337
+ default :
338
+ log .Warn ("unsupported product, skipping setting of SysProfile" , map [string ]interface {}{
339
+ "product" : product ,
340
+ })
341
+ return nil
342
+ }
329
343
}
330
344
331
345
func (dc * dellConfigurator ) configProcessor (ctx context.Context ) error {
@@ -384,6 +398,8 @@ func (dc *dellConfigurator) configProcessor(ctx context.Context) error {
384
398
npsVal = "1"
385
399
}
386
400
return dc .enqueueConfig (ctx , "BIOS.ProcSettings.NumaNodesPerSocket" , npsVal )
401
+ case lib .R6615 , lib .R7615 :
402
+ return dc .enqueueConfig (ctx , "BIOS.ProcSettings.NumaNodesPerSocket" , "1" )
387
403
default :
388
404
return nil
389
405
}
You can’t perform that action at this time.
0 commit comments