fix merge error
This commit is contained in:
parent
824473a3a5
commit
bbd49acb2f
|
@ -435,7 +435,7 @@ mod test {
|
|||
assert!(storage.is_free(ix));
|
||||
assert_eq!(storage.uid(ix), None);
|
||||
|
||||
// test get_mmap_fd_stats
|
||||
// test get_open_fd stats
|
||||
let mmap_count = get_mmap_count().unwrap();
|
||||
let open_fd = get_num_open_fd().unwrap();
|
||||
let (soft_limit, hard_limit) = get_open_fd_limits().unwrap();
|
||||
|
@ -446,6 +446,8 @@ mod test {
|
|||
assert!(hard_limit > 0);
|
||||
}
|
||||
|
||||
/// bench get_mmap_count
|
||||
/// 2M mmaps takes 1.5s
|
||||
#[cfg(target_os = "linux")]
|
||||
#[ignore]
|
||||
#[test]
|
||||
|
@ -465,7 +467,6 @@ mod test {
|
|||
v.push(s);
|
||||
}
|
||||
|
||||
// test get_mmap_fd_stats
|
||||
let start = Instant::now();
|
||||
let mmap_count = get_mmap_count().unwrap();
|
||||
let duration = start.elapsed();
|
||||
|
|
|
@ -30,8 +30,6 @@ const SAMPLE_INTERVAL_OS_NETWORK_LIMITS_MS: u64 = MS_PER_H;
|
|||
const SAMPLE_INTERVAL_MEM_MS: u64 = 5 * MS_PER_S;
|
||||
const SAMPLE_INTERVAL_CPU_MS: u64 = 10 * MS_PER_S;
|
||||
const SAMPLE_INTERVAL_DISK_MS: u64 = 5 * MS_PER_S;
|
||||
const SAMPLE_INTERVAL_OPEN_FD_MS: u64 = 30 * MS_PER_S;
|
||||
const SAMPLE_INTERVAL_DISK_MS: u64 = 5 * MS_PER_S;
|
||||
const SAMPLE_INTERVAL_OPEN_FD_MS: u64 = 60 * MS_PER_S;
|
||||
const SLEEP_INTERVAL: Duration = Duration::from_millis(500);
|
||||
|
||||
|
|
Loading…
Reference in New Issue