Merge pull request #7 from filecoin-project/chores/address-pr-nit
bit shift 2 instead of 1 as per PR feedback
This commit is contained in:
commit
2c98869d96
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: 8 << 20,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 8 << 20,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 8 << 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
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: 8 << 20,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 8 << 20,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 8 << 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
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: 8 << 20,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 8 << 20,
|
||||||
|
|
||||||
MultiThread: true,
|
MultiThread: true,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 8 << 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
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: 8 << 20,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 8 << 20,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 8 << 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
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: 8 << 20,
|
||||||
MinMemory: 1 << 23,
|
MinMemory: 8 << 20,
|
||||||
|
|
||||||
MultiThread: false,
|
MultiThread: false,
|
||||||
CanGPU: true,
|
CanGPU: true,
|
||||||
|
|
||||||
BaseMinMemory: 1 << 23,
|
BaseMinMemory: 8 << 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user