Minimum sector size is now 2k
This commit is contained in:
parent
9161b865f3
commit
4dc35285dd
@ -42,7 +42,7 @@ func TestDealFlow(t *testing.T, b APIBuilder, blocktime time.Duration) {
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
|
||||
data := make([]byte, 800)
|
||||
data := make([]byte, 1600)
|
||||
rand.New(rand.NewSource(5)).Read(data)
|
||||
|
||||
r := bytes.NewReader(data)
|
||||
|
@ -10,7 +10,7 @@ func init() {
|
||||
InsecurePoStValidation = true
|
||||
}
|
||||
|
||||
var SectorSizes = []abi.SectorSize{1024}
|
||||
var SectorSizes = []abi.SectorSize{2048}
|
||||
|
||||
// Seconds
|
||||
const BlockDelay = 6
|
||||
|
@ -34,8 +34,8 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
build.SectorSizes = []abi.SectorSize{1024}
|
||||
build.MinimumMinerPower = 1024
|
||||
build.SectorSizes = []abi.SectorSize{2048}
|
||||
build.MinimumMinerPower = 2048
|
||||
}
|
||||
|
||||
const testForkHeight = 40
|
||||
|
@ -15,8 +15,8 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
build.SectorSizes = []abi.SectorSize{1024}
|
||||
build.MinimumMinerPower = 1024
|
||||
build.SectorSizes = []abi.SectorSize{2048}
|
||||
build.MinimumMinerPower = 2048
|
||||
}
|
||||
|
||||
func BenchmarkGetRandomness(b *testing.B) {
|
||||
|
@ -28,8 +28,8 @@ import (
|
||||
func init() {
|
||||
build.InsecurePoStValidation = true
|
||||
os.Setenv("TRUST_PARAMS", "1")
|
||||
build.SectorSizes = []abi.SectorSize{1024}
|
||||
build.MinimumMinerPower = 1024
|
||||
build.SectorSizes = []abi.SectorSize{2048}
|
||||
build.MinimumMinerPower = 2048
|
||||
}
|
||||
|
||||
const source = 0
|
||||
|
@ -56,7 +56,7 @@ func main() {
|
||||
|
||||
log.Info("Starting lotus-bench")
|
||||
|
||||
build.SectorSizes = append(build.SectorSizes, 1024)
|
||||
build.SectorSizes = append(build.SectorSizes, 2048)
|
||||
|
||||
app := &cli.App{
|
||||
Name: "lotus-bench",
|
||||
|
@ -51,7 +51,7 @@ If you suspect that your GPU is not being used, first make sure it is properly c
|
||||
First, to watch GPU utilization run `nvtop` in one terminal, then in a separate terminal, run:
|
||||
|
||||
```sh
|
||||
lotus-bench --sector-size=1024
|
||||
lotus-bench --sector-size=2048
|
||||
```
|
||||
|
||||
This process uses a fair amount of GPU, and generally takes ~4 minutes to complete. If you do not see any activity in nvtop from lotus during the entire process, it is likely something is misconfigured with your GPU.
|
||||
|
@ -23,7 +23,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
build.SectorSizes = []abi.SectorSize{1024}
|
||||
build.SectorSizes = []abi.SectorSize{2048}
|
||||
}
|
||||
|
||||
func (api *api) Spawn() (nodeInfo, error) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
set -xeo
|
||||
|
||||
NUM_SECTORS=2
|
||||
SECTOR_SIZE=1024
|
||||
SECTOR_SIZE=2048
|
||||
|
||||
|
||||
sdt0111=$(mktemp -d)
|
||||
|
Loading…
Reference in New Issue
Block a user