Re: Alternate method of running swapon?

2020-01-08 Thread Jeffrey Walton
On Wed, Jan 8, 2020 at 1:26 PM Bernd Petrovitsch wrote: > > Hi all! > > On 08/01/2020 19:09, Jeffrey Walton wrote: > [...] > > I work with an open source project. We have a VM but it is low-end. > > The machine suffers OOM kills. We don't have access to /etc/fstab. > > Apparently you run too many

Re: Alternate method of running swapon?

2020-01-08 Thread Valentin Vidić
On Wed, Jan 08, 2020 at 03:08:42PM -0500, Jeffrey Walton wrote: > It looks like this is coming from the OpenVZ folks. They feel a > swapfile would negatively impact performance, so it is disabled. Yep, since this is not a full VM but rather a container, there is not much to do other than buying a

Re: Alternate method of running swapon?

2020-01-08 Thread Jeffrey Walton
On Wed, Jan 8, 2020 at 1:43 PM Valentin Vidić wrote: > > On Wed, Jan 08, 2020 at 01:33:21PM -0500, Jeffrey Walton wrote: > > I believe this is the relevant part from the Pastebin: > > > > readlink("/swapfile", 0x7ffefb4c0810, 4096) = -1 EINVAL (Invalid argument) > > stat("/swapfile",

Re: read the memory mapped address - pcie - kernel hangs

2020-01-08 Thread Greg KH
On Thu, Jan 09, 2020 at 12:30:20AM +0530, Muni Sekhar wrote: > Hi All, > > I have module with Xilinx FPGA. It implements UART(s), SPI(s), > parallel I/O and interfaces them to the Host CPU via PCI Express bus. > I see that my system freezes without capturing the crash dump for certain > tests. >

read the memory mapped address - pcie - kernel hangs

2020-01-08 Thread Muni Sekhar
Hi All, I have module with Xilinx FPGA. It implements UART(s), SPI(s), parallel I/O and interfaces them to the Host CPU via PCI Express bus. I see that my system freezes without capturing the crash dump for certain tests. I debugged this issue and it was tracked down to the ‘readl()’ in interrupt

Re: Alternate method of running swapon?

2020-01-08 Thread Valentin Vidić
On Wed, Jan 08, 2020 at 01:33:21PM -0500, Jeffrey Walton wrote: > I believe this is the relevant part from the Pastebin: > > readlink("/swapfile", 0x7ffefb4c0810, 4096) = -1 EINVAL (Invalid argument) > stat("/swapfile", {st_mode=S_IFREG|0600, st_size=2147483648, ...}) = 0 > open("/swapfile",

Re: Alternate method of running swapon?

2020-01-08 Thread Jeffrey Walton
On Wed, Jan 8, 2020 at 1:23 PM Valentin Vidić wrote: > > On Wed, Jan 08, 2020 at 01:09:23PM -0500, Jeffrey Walton wrote: > > Hi Everyone, > > > > I work with an open source project. We have a VM but it is low-end. > > The machine suffers OOM kills. We don't have access to /etc/fstab. > >

Re: Alternate method of running swapon?

2020-01-08 Thread Greg KH
On Wed, Jan 08, 2020 at 01:09:23PM -0500, Jeffrey Walton wrote: > Hi Everyone, > > I work with an open source project. We have a VM but it is low-end. > The machine suffers OOM kills. We don't have access to /etc/fstab. > Everything is an upsell with the VPS provider. > > I'm trying to setup a

Re: Alternate method of running swapon?

2020-01-08 Thread Bernd Petrovitsch
Hi all! On 08/01/2020 19:09, Jeffrey Walton wrote: [...] > I work with an open source project. We have a VM but it is low-end. > The machine suffers OOM kills. We don't have access to /etc/fstab. Apparently you run too many (or too fat) programs;-) > Everything is an upsell with the VPS

Re: Alternate method of running swapon?

2020-01-08 Thread Valentin Vidić
On Wed, Jan 08, 2020 at 01:09:23PM -0500, Jeffrey Walton wrote: > Hi Everyone, > > I work with an open source project. We have a VM but it is low-end. > The machine suffers OOM kills. We don't have access to /etc/fstab. > Everything is an upsell with the VPS provider. > > I'm trying to setup a

Alternate method of running swapon?

2020-01-08 Thread Jeffrey Walton
Hi Everyone, I work with an open source project. We have a VM but it is low-end. The machine suffers OOM kills. We don't have access to /etc/fstab. Everything is an upsell with the VPS provider. I'm trying to setup a swapfile during startup using Systemd but: # swapon /swapfile swapon: