shift 2
This commit is contained in:
parent
7c07e3406e
commit
c99952d8cd
60
resources.go
60
resources.go
@ -50,20 +50,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
|
|||||||
BaseMinMemory: 1 << 30,
|
BaseMinMemory: 1 << 30,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
||||||
MaxMemory: 1 << 11,
|
MaxMemory: 2 << 10,
|
||||||
MinMemory: 1 << 11,
|
MinMemory: 2 << 10,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 11,
|
BaseMinMemory: 2 << 10,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
||||||
MaxMemory: 1 << 23,
|
MaxMemory: 2 << 22,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 2 << 22,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 2 << 22,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sealtasks.TTPreCommit1: {
|
sealtasks.TTPreCommit1: {
|
||||||
@ -84,20 +84,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
|
|||||||
BaseMinMemory: 1 << 30,
|
BaseMinMemory: 1 << 30,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
||||||
MaxMemory: 1 << 11,
|
MaxMemory: 2 << 10,
|
||||||
MinMemory: 1 << 11,
|
MinMemory: 2 << 10,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 11,
|
BaseMinMemory: 2 << 10,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
||||||
MaxMemory: 1 << 23,
|
MaxMemory: 2 << 22,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 2 << 22,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 2 << 22,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sealtasks.TTPreCommit2: {
|
sealtasks.TTPreCommit2: {
|
||||||
@ -118,20 +118,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
|
|||||||
BaseMinMemory: 1 << 30,
|
BaseMinMemory: 1 << 30,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
||||||
MaxMemory: 1 << 11,
|
MaxMemory: 2 << 10,
|
||||||
MinMemory: 1 << 11,
|
MinMemory: 2 << 10,
|
||||||
|
|
||||||
MultiThread: true,
|
MultiThread: true,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 11,
|
BaseMinMemory: 2 << 10,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
||||||
MaxMemory: 1 << 23,
|
MaxMemory: 2 << 22,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 2 << 22,
|
||||||
|
|
||||||
MultiThread: true,
|
MultiThread: true,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 2 << 22,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sealtasks.TTCommit1: { // Very short (~100ms), so params are very light
|
sealtasks.TTCommit1: { // Very short (~100ms), so params are very light
|
||||||
@ -152,20 +152,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
|
|||||||
BaseMinMemory: 1 << 30,
|
BaseMinMemory: 1 << 30,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
||||||
MaxMemory: 1 << 11,
|
MaxMemory: 2 << 10,
|
||||||
MinMemory: 1 << 11,
|
MinMemory: 2 << 10,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 11,
|
BaseMinMemory: 2 << 10,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
||||||
MaxMemory: 1 << 23,
|
MaxMemory: 2 << 22,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 2 << 22,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 2 << 22,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sealtasks.TTCommit2: { // TODO: Measure more accurately
|
sealtasks.TTCommit2: { // TODO: Measure more accurately
|
||||||
@ -188,22 +188,22 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
|
|||||||
BaseMinMemory: 10 << 30,
|
BaseMinMemory: 10 << 30,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
|
||||||
MaxMemory: 1 << 11,
|
MaxMemory: 2 << 10,
|
||||||
MinMemory: 1 << 11,
|
MinMemory: 2 << 10,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
CanGPU: true,
|
CanGPU: true,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 11,
|
BaseMinMemory: 2 << 10,
|
||||||
},
|
},
|
||||||
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
|
||||||
MaxMemory: 1 << 23,
|
MaxMemory: 2 << 22,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 2 << 22,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
CanGPU: true,
|
CanGPU: true,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 2 << 22,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user