Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
changed competition limits and bump cli
Browse files Browse the repository at this point in the history
  • Loading branch information
louisdewar committed Feb 4, 2022
1 parent 0862fb5 commit f983c65
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions competitions/climatehack/src/game_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ impl GameClient for ClimateHackGameClient {

type GameEvent = ClimateHackGameEvent;

const AGENT_RAM_MB: u64 = 4 * 1024;
const AGENT_SCRATCH_MB: u64 = 6 * 1024;
const AGENT_RAM_MB: u64 = 6 * 1024;
const AGENT_SCRATCH_MB: u64 = 8 * 1024;

async fn run<'a>(
&self,
Expand Down
2 changes: 1 addition & 1 deletion crates/doxa_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "doxa_cli"
version = "0.1.1"
version = "0.1.2"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/doxa_storage/src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub async fn upload(
.await??;

// TODO: get max size from competition
let max_size = 2_000_000_000;
let max_size = 4_000_000_000;

match process_field_upload(&mut f, field, max_size).await {
Ok(()) => {}
Expand Down
3 changes: 2 additions & 1 deletion crates/doxa_vm/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub const MAX_AGENT_SIZE: usize = 3_000_000_000;
/// Maximum length for messages other than the agent file in bytes
pub const MAX_MSG_LEN: usize = 50_000_000;
pub const MAX_FILE_NAME_LEN: usize = 300;
pub const STDERR_LEN: usize = 100_000;

/// This is the server that runs inside of the VM.
pub struct VMExecutor {
Expand Down Expand Up @@ -121,7 +122,7 @@ impl VMExecutor {
.stderr
.take()
.unwrap()
.take(MAX_MSG_LEN as u64)
.take(STDERR_LEN as u64)
.read_to_string(&mut err_output)
.await?;
}
Expand Down
2 changes: 1 addition & 1 deletion crates/doxa_vm/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl Manager {
},
drives: drive_sources,
machine_config: MachineConfig {
vcpu_count: 2,
vcpu_count: 4,
mem_size_mib: memory_size_mib,
},
vsock: doxa_firecracker_sdk::spawn::Vsock {
Expand Down

0 comments on commit f983c65

Please sign in to comment.