Hi all. I prefer to build all ports in /tmp, which is actually a tmpfs filesystem. I have 8G partition. But when I tried to compile Apache OpenOffice system starts shooting processes when I was near 6G of swap. Oct 11 18:12:32 ar1l0u kernel: swap zone exhausted, increase kern.maxswzone Oct 11 18:12:32 ar1l0u kernel: pid 1334 (java), uid 818, was killed: out of swap space Oct 11 18:12:32 ar1l0u kernel: pid 74518 (thunderbird), uid 1001, was killed: out of swap space Oct 11 18:12:32 ar1l0u kernel: swap zone ok As I'm running rather current version I see r240097 in the log that states that there is no maxswzone setting for amd64 anymore. When I tried to query this parameter I got: > sysctl kern.maxswzone kern.maxswzone: 0 What was that? Did that mean that 6G is a maximum swap size now? PS: I'm retrying now with kern.maxswzone set to 256M. -- Sphinx of black quartz, judge my vow.
On 11 October 2012 19:32, Volodymyr Kostyrko <c.kworr at gmail.com> wrote:> Hi all. > > I prefer to build all ports in /tmp, which is actually a tmpfs filesystem. I > have 8G partition. But when I tried to compile Apache OpenOffice system > starts shooting processes when I was near 6G of swap. > > Oct 11 18:12:32 ar1l0u kernel: swap zone exhausted, increase kern.maxswzone > Oct 11 18:12:32 ar1l0u kernel: pid 1334 (java), uid 818, was killed: out of > swap space > Oct 11 18:12:32 ar1l0u kernel: pid 74518 (thunderbird), uid 1001, was > killed: out of swap space > Oct 11 18:12:32 ar1l0u kernel: swap zone ok >How much RAM (avail memory) do you have?> As I'm running rather current version I see r240097 in the log that states > that there is no maxswzone setting for amd64 anymore. When I tried to query > this parameter I got: > >> sysctl kern.maxswzone > kern.maxswzone: 0 > > What was that? Did that mean that 6G is a maximum swap size now? > > PS: I'm retrying now with kern.maxswzone set to 256M.I doubt it's worth to try. -- wbr, pluknet
11.10.2012 18:37, Sergey Kandaurov wrote:> On 11 October 2012 19:32, Volodymyr Kostyrko <c.kworr at gmail.com> wrote: >> Hi all. >> >> I prefer to build all ports in /tmp, which is actually a tmpfs filesystem. I >> have 8G partition. But when I tried to compile Apache OpenOffice system >> starts shooting processes when I was near 6G of swap. >> >> Oct 11 18:12:32 ar1l0u kernel: swap zone exhausted, increase kern.maxswzone >> Oct 11 18:12:32 ar1l0u kernel: pid 1334 (java), uid 818, was killed: out of >> swap space >> Oct 11 18:12:32 ar1l0u kernel: pid 74518 (thunderbird), uid 1001, was >> killed: out of swap space >> Oct 11 18:12:32 ar1l0u kernel: swap zone ok >> > > How much RAM (avail memory) do you have?2G -- Sphinx of black quartz, judge my vow.
On Thu, Oct 11, 2012 at 3:38 PM, Volodymyr Kostyrko <c.kworr at gmail.com>wrote:> 11.10.2012 18:37, Sergey Kandaurov wrote: > >> On 11 October 2012 19:32, Volodymyr Kostyrko <c.kworr at gmail.com> wrote: >> >>> Hi all. >>> >>> I prefer to build all ports in /tmp, which is actually a tmpfs >>> filesystem. I >>> have 8G partition. But when I tried to compile Apache OpenOffice system >>> starts shooting processes when I was near 6G of swap. >>> >>> Oct 11 18:12:32 ar1l0u kernel: swap zone exhausted, increase >>> kern.maxswzone >>> Oct 11 18:12:32 ar1l0u kernel: pid 1334 (java), uid 818, was killed: out >>> of >>> swap space >>> Oct 11 18:12:32 ar1l0u kernel: pid 74518 (thunderbird), uid 1001, was >>> killed: out of swap space >>> Oct 11 18:12:32 ar1l0u kernel: swap zone ok >>> >>> >> How much RAM (avail memory) do you have? >> > > 2G > >I can chime in with the exact same error. I was using poudriere to build some ports, and on apache-oo the machine actually had a kernel panic. Machine has 16gb of ram and 16gb swap. I had top running (update every 1 sec) and there was >10gb of swap free when panic happened. The OS is fbsd 9.1-PRERELEASE, from before problematic changes with nullfs/zfs interaction. Best regards Andreas
11.10.2012 18:50, Andreas Nilsson wrote:> I can chime in with the exact same error. I was using poudriere to build > some ports, and on apache-oo the machine actually had a kernel panic. > Machine has 16gb of ram and 16gb swap. > > I had top running (update every 1 sec) and there was >10gb of swap free > when panic happened. > > The OS is fbsd 9.1-PRERELEASE, from before problematic changes with > nullfs/zfs interaction.> uname -a FreeBSD ar1l0u 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2 r241438M: Thu Oct 11 10:20:20 EEST 2012 arcade at ar1l0u:/usr/obj/usr/src/sys/MINIMAL amd64 Added patches: tmpfs nrbtree, zfs feats. -- Sphinx of black quartz, judge my vow.
on 11/10/2012 18:38 Volodymyr Kostyrko said the following:> 11.10.2012 18:37, Sergey Kandaurov wrote: >> On 11 October 2012 19:32, Volodymyr Kostyrko <c.kworr at gmail.com> wrote: >>> Hi all. >>> >>> I prefer to build all ports in /tmp, which is actually a tmpfs filesystem. I >>> have 8G partition. But when I tried to compile Apache OpenOffice system >>> starts shooting processes when I was near 6G of swap. >>> >>> Oct 11 18:12:32 ar1l0u kernel: swap zone exhausted, increase kern.maxswzone >>> Oct 11 18:12:32 ar1l0u kernel: pid 1334 (java), uid 818, was killed: out of >>> swap space >>> Oct 11 18:12:32 ar1l0u kernel: pid 74518 (thunderbird), uid 1001, was >>> killed: out of swap space >>> Oct 11 18:12:32 ar1l0u kernel: swap zone ok >>> >> >> How much RAM (avail memory) do you have? > > 2GWhat does vmstat -z | fgrep -i swap show? -- Andriy Gapon
11.10.2012 19:27, Andriy Gapon wrote:>>> On 11 October 2012 19:32, Volodymyr Kostyrko <c.kworr at gmail.com> wrote: >>>> Hi all. >>>> >>>> I prefer to build all ports in /tmp, which is actually a tmpfs filesystem. I >>>> have 8G partition. But when I tried to compile Apache OpenOffice system >>>> starts shooting processes when I was near 6G of swap. >>>> >>>> Oct 11 18:12:32 ar1l0u kernel: swap zone exhausted, increase kern.maxswzone >>>> Oct 11 18:12:32 ar1l0u kernel: pid 1334 (java), uid 818, was killed: out of >>>> swap space >>>> Oct 11 18:12:32 ar1l0u kernel: pid 74518 (thunderbird), uid 1001, was >>>> killed: out of swap space >>>> Oct 11 18:12:32 ar1l0u kernel: swap zone ok >>>> >>> >>> How much RAM (avail memory) do you have? >> >> 2G > > > What does vmstat -z | fgrep -i swap show?SWAPMETA: 288, 252902, 363, 339, 38104, 0, 0 -- Sphinx of black quartz, judge my vow.
on 12/10/2012 09:59 Volodymyr Kostyrko said the following:> 11.10.2012 19:27, Andriy Gapon wrote: >>>> On 11 October 2012 19:32, Volodymyr Kostyrko <c.kworr at gmail.com> wrote: >>>>> Hi all. >>>>> >>>>> I prefer to build all ports in /tmp, which is actually a tmpfs filesystem. I >>>>> have 8G partition. But when I tried to compile Apache OpenOffice system >>>>> starts shooting processes when I was near 6G of swap. >>>>> >>>>> Oct 11 18:12:32 ar1l0u kernel: swap zone exhausted, increase kern.maxswzone >>>>> Oct 11 18:12:32 ar1l0u kernel: pid 1334 (java), uid 818, was killed: out of >>>>> swap space >>>>> Oct 11 18:12:32 ar1l0u kernel: pid 74518 (thunderbird), uid 1001, was >>>>> killed: out of swap space >>>>> Oct 11 18:12:32 ar1l0u kernel: swap zone ok >>>>> >>>> >>>> How much RAM (avail memory) do you have? >>> >>> 2G >> >> >> What does vmstat -z | fgrep -i swap show? > > SWAPMETA: 288, 252902, 363, 339, 38104, 0, 0 >Hmm... this should be enough to cover for almost 16GB of swap. Maybe there is some bug which could lead to over-allocation of swap blocks. -- Andriy Gapon