Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. params.h
  5. Abstract:
  6. SIS Groveler registry parameters headers
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef _INC_PARAMS
  14. #define _INC_PARAMS
  15. struct ReadParameters
  16. {
  17. ReadParameters();
  18. int parameter_backup_interval;
  19. int target_entries_per_extraction;
  20. int max_extraction_interval;
  21. int base_grovel_interval;
  22. int max_grovel_interval;
  23. int max_response_lag;
  24. int low_confidence_grovel_interval;
  25. int low_disk_space_grovel_interval;
  26. int working_grovel_interval;
  27. int grovel_duration;
  28. int partition_info_update_interval;
  29. int base_restart_extraction_interval;
  30. int max_restart_extraction_interval;
  31. int base_restart_groveling_interval;
  32. int max_restart_groveling_interval;
  33. int base_regrovel_interval;
  34. int max_regrovel_interval;
  35. int volscan_regrovel_threshold;
  36. int partition_balance_time_constant;
  37. int read_time_increase_history_size;
  38. int read_time_decrease_history_size;
  39. int sis_efficacy_history_size;
  40. int log_winnow_history_size;
  41. int file_size_history_size;
  42. int sample_group_size;
  43. double acceptance_p_value;
  44. double rejection_p_value;
  45. double base_use_multiplier;
  46. double max_use_multiplier;
  47. double peak_finder_accuracy;
  48. double peak_finder_range;
  49. double base_cpu_load_threshold;
  50. double max_cpu_load_threshold;
  51. double read_report_discard_threshold;
  52. private:
  53. enum {registry_entry_count = 34};
  54. };
  55. struct WriteParameters
  56. {
  57. WriteParameters(
  58. int backup_interval);
  59. ~WriteParameters();
  60. double hash_match_ratio;
  61. double compare_match_ratio;
  62. double dequeue_hash_ratio;
  63. private:
  64. enum {registry_entry_count = 3};
  65. static void backup(
  66. void *context);
  67. int backup_interval;
  68. EntrySpec registry_entries[registry_entry_count];
  69. };
  70. #endif /* _INC_PARAMS */