[Groonga-commit] groonga/groonga [master] Log details about vm.overcommit_memory

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 18:41:55 JST


Kouhei Sutou	2012-08-09 18:41:55 +0900 (Thu, 09 Aug 2012)

  New Revision: 02f176b5db2587385f28792b9600bd173306e3ac
  https://github.com/groonga/groonga/commit/02f176b5db2587385f28792b9600bd173306e3ac

  Log:
    Log details about vm.overcommit_memory
    
    But it never be showen because we can't change the default log level
    before grn_init(). :<

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+7 -5)
===================================================================
--- lib/ctx.c    2012-08-09 18:28:33 +0900 (c553035)
+++ lib/ctx.c    2012-08-09 18:41:55 +0900 (f7ec159)
@@ -776,16 +776,18 @@ check_overcommit_memory(grn_ctx *ctx)
   value = fgetc(file);
   if (value != '1') {
     GRN_LOG(ctx, GRN_LOG_NOTICE,
-            "vm.overcommit_memory kernel parameter should be 1: <%c>", value);
-    GRN_LOG(ctx, GRN_LOG_NOTICE,
+            "vm.overcommit_memory kernel parameter should be 1: <%c>: "
+            "See INFO level log to resolve this",
+            value);
+    GRN_LOG(ctx, GRN_LOG_INFO,
             "Some processings with vm.overcommit_memory != 1 "
             "may break DB under low memory condition.");
-    GRN_LOG(ctx, GRN_LOG_NOTICE,
+    GRN_LOG(ctx, GRN_LOG_INFO,
             "To set vm.overcommit_memory to 1");
-    GRN_LOG(ctx, GRN_LOG_NOTICE,
+    GRN_LOG(ctx, GRN_LOG_INFO,
             "add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and "
             "restart your system or");
-    GRN_LOG(ctx, GRN_LOG_NOTICE,
+    GRN_LOG(ctx, GRN_LOG_INFO,
             "run 'sudo /sbin/sysctl vm.overcommit_memory=1' command.");
   }
   fclose(file);
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index