swapfile

Make java understand that swap exists, and encourage him to use it [closed]

喜欢而已 提交于 2021-01-29 07:12:43
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 months ago . Improve this question So, I have a java jar to run on my raspberry pi, and it requires a lot of memory. I have set up 2 gb swap on an external usb flash drive. But when I start the jar with -Xmx2048M, it says that it could not reserve enough space for 2097152KB object heap. I know

Can I configure Linux swap space on AWS Elastic Beanstalk?

假装没事ソ 提交于 2020-07-06 13:17:43
问题 Can I configure Linux swap space for an AWS Elastic Beanstalk environment? I don't see an option for it in the console. From looking at /proc/meminfo on my running instances in my environment MemAvailable is looking quite low despite there being quite high Inactive values. I suspect there are a few dormant background processes that it would do no harm to page out, and would free up a non-trivial portion of the limited physical memory on the t2.nano I'm using. 回答1: I figured out how to do this

How to prevent paging for one program / process?

£可爱£侵袭症+ 提交于 2019-12-04 16:20:11
问题 I have a program that requires much memory, like 2/3 of all the physical ram. After some runtime my operating system begins to swap the program to hdd. But I need the program to respond very fast all the time, so I need to prevent paging for that process. How can you prevent the OS to swap one process? Thanks for any help! 回答1: At the start of the program, call: mlockall(MCL_CURRENT | MCL_FUTURE); (If you do not have the source to the program, you'll have to debauch the process with ptrace to

Change Vim swap/backup/undo file name

随声附和 提交于 2019-12-04 07:23:17
问题 Is it possible to change the way Vim names its swap/backup/undo files? To avoid clutter, I've set options in my ~/.vimrc to dump these files in ~/.vim/tmp/{swap,backup,undo} ; however, as I routinely edit files in different directories with the same name, I often end up with lots of otherwise indistinguishable files and Vim sometimes has trouble recovering. Ideally, I'd like to use the naming scheme that the persistent undo has ( %path%to%file.undo ) for all these auxiliary files; there's no

Why don't most Android devices have swap area as typical OS does?

荒凉一梦 提交于 2019-12-03 09:27:16
问题 Does any Android today support swap area which is suppose to boost the performance? What are the considerations that make most Android devices drop that feature? 回答1: Does any Android today support swap area? Quoting Dianne Hackborn: To be a little more specific, it does use paging but not swap space. That is, it relies heavily on being able to mmap() files and have the kernel page in data from the file as needed (and drop those pages when not needed). It does not however use swap space for

How to change the folder path for swp files in Vim

让人想犯罪 __ 提交于 2019-12-03 02:55:20
问题 I'm working at a project on a remote server. I don't want to have the swap files on the server. I would like all swap files for Vim (and, of course, gVim) to be saved on the specified directory. How could I do that? 回答1: You can set the directory option to the location that you want vim to store its swap files, e.g.: mkdir -p $HOME/.vim/swapfiles # this dir must exist vi does not create it " $HOME/.vimrc :set directory=$HOME/.vim/swapfiles// I use trailing double path separators because, from

Why don't most Android devices have swap area as typical OS does?

只谈情不闲聊 提交于 2019-12-02 22:21:18
Does any Android today support swap area which is suppose to boost the performance? What are the considerations that make most Android devices drop that feature? Does any Android today support swap area? Quoting Dianne Hackborn : To be a little more specific, it does use paging but not swap space. That is, it relies heavily on being able to mmap() files and have the kernel page in data from the file as needed (and drop those pages when not needed). It does not however use swap space for paging out dirty pages. With some slightly adaptions, swap area can work with Android's default low memory

How to change the folder path for swp files in Vim

霸气de小男生 提交于 2019-12-02 16:29:45
I'm working at a project on a remote server. I don't want to have the swap files on the server. I would like all swap files for Vim (and, of course, gVim) to be saved on the specified directory. How could I do that? maerics You can set the directory option to the location that you want vim to store its swap files, e.g.: mkdir -p $HOME/.vim/swapfiles # this dir must exist vi does not create it " $HOME/.vimrc :set directory=$HOME/.vim/swapfiles// I use trailing double path separators because, from the help docs: For Unix and Win32, if a directory ends in two path separators "//" or "\\", the

Change Vim swap/backup/undo file name

戏子无情 提交于 2019-12-02 13:54:25
Is it possible to change the way Vim names its swap/backup/undo files? To avoid clutter, I've set options in my ~/.vimrc to dump these files in ~/.vim/tmp/{swap,backup,undo} ; however, as I routinely edit files in different directories with the same name, I often end up with lots of otherwise indistinguishable files and Vim sometimes has trouble recovering. Ideally, I'd like to use the naming scheme that the persistent undo has ( %path%to%file.undo ) for all these auxiliary files; there's no obvious way to set it, but can it be done with Buf{Read,Write} macros? I have this in my .vimrc and it