GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    [SUYA] ひみつ :blabcatverified: (ivesen@miniwa.moe)'s status on Sunday, 08-Dec-2024 07:36:37 JST [SUYA] ひみつ :blabcatverified: [SUYA] ひみつ :blabcatverified:
    • Quad
    @quad echo is a builtin so it doesn't count towards the 2M limit

    ls might also be a builtin
    the 2M limit is the linux kernel default iirc
    In conversation about 7 months ago from miniwa.moe permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Sunday, 08-Dec-2024 07:36:36 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Quad

      @ivesen @quad 2MB sounds kind of weird, at least ARG_MAX here is 131072 bytes so 128 KiB.

      /usr/include/linux/limits.h:#define ARG_MAX 131072 /* # bytes of args + environ for exec() */

      In conversation about 7 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Sunday, 08-Dec-2024 07:44:13 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Quad

      @ivesen @quad And doesn't seems to be some weird runtime thing (which POSIX allows for ARG_MAX):

      $ cat arg_max.c #include <unistd.h> #include <stdio.h> #include <limits.h> int main() { printf("ARG_MAX = %d\n", ARG_MAX); long r = sysconf(_SC_ARG_MAX); printf("_SC_ARG_MAX = %ld\n", r); } $ $CC arg_max.c -o arg_max $ ./arg_max ARG_MAX = 131072 _SC_ARG_MAX = 131072
      In conversation about 7 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Sunday, 08-Dec-2024 07:47:38 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Quad

      @ivesen @quad getconf uses sysconf() underneath but most implementations of getconf are scuffed.

      In conversation about 7 months ago permalink
    • Embed this notice
      [SUYA] ひみつ :blabcatverified: (ivesen@miniwa.moe)'s status on Sunday, 08-Dec-2024 07:47:39 JST [SUYA] ひみつ :blabcatverified: [SUYA] ひみつ :blabcatverified:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Quad
      @lanodan @quad what about `getconf ARG_MAX` ?
      In conversation about 7 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Sunday, 08-Dec-2024 08:04:23 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Quad

      @ivesen @quad Gentoo for this one so maybe some weird kernel config somewhere.

      libc doesn't matters here btw, ARG_MAX has to match kernel definition and sysconf(_SC_ARG_MAX) is literally asking the kernel for the value.

      In conversation about 7 months ago permalink
    • Embed this notice
      [SUYA] ひみつ :blabcatverified: (ivesen@miniwa.moe)'s status on Sunday, 08-Dec-2024 08:04:24 JST [SUYA] ひみつ :blabcatverified: [SUYA] ひみつ :blabcatverified:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Quad
      @lanodan @quad strange, the systems I have on hand atm all have 2M as the limit

      are you running alpine?
      In conversation about 7 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Sunday, 08-Dec-2024 08:19:11 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Quad

      @ivesen @quad Aaah, looking around you can apparently get it bigger with transparent hugepages, which here defaults to only via madvise instead of always being active (which sounds quite like a recipe for memory-management problems).

      In conversation about 7 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Sunday, 08-Dec-2024 08:39:38 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Quad

      @ivesen @quad Ah yeah right, gnu libc just doesn't defines ARG_MAX in <limits.h> even though it's part of POSIX, I guess I'll hit this problem over and over.

      In conversation about 7 months ago permalink
    • Embed this notice
      [SUYA] ひみつ :blabcatverified: (ivesen@miniwa.moe)'s status on Sunday, 08-Dec-2024 08:39:39 JST [SUYA] ひみつ :blabcatverified: [SUYA] ひみつ :blabcatverified:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Quad
      @lanodan @quad I mean, the c program you wrote won't even compile on my machine, since it can't find ARG_MAX

      but removing that bit I still get 2M from the second bit
      In conversation about 7 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.