[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

is it possible to suspend a program to memory in linux, for example

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 24
Thread images: 3

is it possible to suspend a program to memory in linux, for example i dont want a videogame running in the background when im not playing it but also i dont want to go through the trouble of opening it and closing it

what do you think?
>>
Sage and burn, kys faggot
>>
File: .jpg (359KB, 744x1044px) Image search: [Google]
.jpg
359KB, 744x1044px
I guess only java telephones have this kind of power then
>>
>go through the trouble of opening and closing it
>Opening and closing it

First off how are you this fucking lazy and secodnly you do not "open" a game you "run" a game
>>
https://en.wikipedia.org/wiki/Nice_(Unix)

see also: renice
>>
>>59853039
nice just changes the priority though
I want the program to be completely suspended

 killall -SIGTSTP
killall -SIGCONT
seems like it would work, but maybe unreliable
>>
i think that you're a cock hungry faggot
>>
>>59853055
Doesn't changing the niceness to 19 basically halt the application when there's anything else running at the same time?
>>
>>59853107
i dont want it running at all
>>
>>59852749
If you play a game in a virtual machine, you can put it away and pick it up again later.
>>
>>59852749
Try playing a PS Vita, it's a feature built in to the firmware
>>
>>59853111
I don't want you breathing at all.
>>
>>59853194
haha
>>
>>59853113
this
Save the VM current state, close the virtualization program and open it later.
>>
>>59852749
http://unix.stackexchange.com/questions/2107/how-to-suspend-and-resume-processes wasn't hard to google
>>
>>59853305
>using search engines
wtf my dude
>>
>>59852749
>suspend a program to memory
You don't suspend software to memory, memory is where you cache running software.
You load software from a hard drive to memory to execute it on the processor. What do you propose should happen when you suspend the software to where it's already running from? Do you only mean to freeze it's state temporarily?
For the record, all operating systems swap. Traditional desktops just don't have a need to swap things like games.
>>
>>59853399
wrong retard
>>
>>59853248
Close, but by default this will still require reading from disk while reloading the state of the VM, which isn't much different from loading the game normally.

You can get around this by creating a file system in RAM and making the VM save its state there. You can do this by adding a line to fstab like you would to maybe any fs, but instead of having type ext4 or ntfs or whatever, use tempfs.

>>59853399 is right, you might want to keep an eye on swapping. If you don't want it to happen, I'm sure there's a way to do it, because GNU/Linux is magic.

Also, OP is a flaming faggot.
>>
you can SIGSTOP it, which will effectively "pause" the process, using no CPU (and by extension, the GPU)
it will stay in RAM, but will be swapped out if need be

as for completely saving the process, there is one project i'm aware of, CRIU. not sure if it can handle programs that use the GPU directly
>>
>>59853315
>why shouldn't you use search engines?
Wtf my dud
>>
>>59852795

>kys

Suicide is not something to joke about, anon.
>>
>>59852749

If there's no mechanism to simply suspend the process inherently, you could fuck with the niceness settings so it's barely getting CPU time
>>
File: Unsorted 1693.jpg (2MB, 2494x3356px) Image search: [Google]
Unsorted 1693.jpg
2MB, 2494x3356px
guhhh why is linux so lame
Thread posts: 24
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.