Minimum sector size is now 2k

This commit is contained in:
Łukasz Magiera 2020-02-28 01:12:52 +01:00
parent 9161b865f3
commit 4dc35285dd
9 changed files with 12 additions and 12 deletions

View File

@ -42,7 +42,7 @@ func TestDealFlow(t *testing.T, b APIBuilder, blocktime time.Duration) {
} }
time.Sleep(time.Second) time.Sleep(time.Second)
data := make([]byte, 800) data := make([]byte, 1600)
rand.New(rand.NewSource(5)).Read(data) rand.New(rand.NewSource(5)).Read(data)
r := bytes.NewReader(data) r := bytes.NewReader(data)

View File

@ -10,7 +10,7 @@ func init() {
InsecurePoStValidation = true InsecurePoStValidation = true
} }
var SectorSizes = []abi.SectorSize{1024} var SectorSizes = []abi.SectorSize{2048}
// Seconds // Seconds
const BlockDelay = 6 const BlockDelay = 6

View File

@ -34,8 +34,8 @@ import (
) )
func init() { func init() {
build.SectorSizes = []abi.SectorSize{1024} build.SectorSizes = []abi.SectorSize{2048}
build.MinimumMinerPower = 1024 build.MinimumMinerPower = 2048
} }
const testForkHeight = 40 const testForkHeight = 40

View File

@ -15,8 +15,8 @@ import (
) )
func init() { func init() {
build.SectorSizes = []abi.SectorSize{1024} build.SectorSizes = []abi.SectorSize{2048}
build.MinimumMinerPower = 1024 build.MinimumMinerPower = 2048
} }
func BenchmarkGetRandomness(b *testing.B) { func BenchmarkGetRandomness(b *testing.B) {

View File

@ -28,8 +28,8 @@ import (
func init() { func init() {
build.InsecurePoStValidation = true build.InsecurePoStValidation = true
os.Setenv("TRUST_PARAMS", "1") os.Setenv("TRUST_PARAMS", "1")
build.SectorSizes = []abi.SectorSize{1024} build.SectorSizes = []abi.SectorSize{2048}
build.MinimumMinerPower = 1024 build.MinimumMinerPower = 2048
} }
const source = 0 const source = 0

View File

@ -56,7 +56,7 @@ func main() {
log.Info("Starting lotus-bench") log.Info("Starting lotus-bench")
build.SectorSizes = append(build.SectorSizes, 1024) build.SectorSizes = append(build.SectorSizes, 2048)
app := &cli.App{ app := &cli.App{
Name: "lotus-bench", Name: "lotus-bench",

View File

@ -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: First, to watch GPU utilization run `nvtop` in one terminal, then in a separate terminal, run:
```sh ```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. 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.

View File

@ -23,7 +23,7 @@ import (
) )
func init() { func init() {
build.SectorSizes = []abi.SectorSize{1024} build.SectorSizes = []abi.SectorSize{2048}
} }
func (api *api) Spawn() (nodeInfo, error) { func (api *api) Spawn() (nodeInfo, error) {

View File

@ -3,7 +3,7 @@
set -xeo set -xeo
NUM_SECTORS=2 NUM_SECTORS=2
SECTOR_SIZE=1024 SECTOR_SIZE=2048
sdt0111=$(mktemp -d) sdt0111=$(mktemp -d)