How to prevent swap-out

How to prevent swap-out

Post by Kenneth P. Turv » Tue, 18 Nov 1997 04:00:00




Quote:>Is there a way to prevent a process from being swapped out of main memory?
>The reason is a process is blocked on a read() call on the serial port.
>Other programs use memory in the meantime such that this process is
>swapped out by the time data comes in to the serial port.  Sometimes the
>process is not not swapped back in fast enough (due to concurrent disk
>access by other processes) and the data is not read properly.

>So is there a way to speed up this swap-in to main memory or can I prevent
>the swap-out in the first place?

This is very system dependent.  What system are you running?  A bit
more information would be useful.

--

Reasonable people adapt themselves to the world.  Unreasonable people
attempt to adapt the world to themselves.  All progress, therefore,
depends on unreasonable people.
        -- George Bernard Shaw

 
 
 

How to prevent swap-out

Post by fp.. » Wed, 19 Nov 1997 04:00:00


I am running NeXTSTEP 3.3.  Yes, it's not exactly UNIX, but doesn't it
contain BSD libraries?



> >Is there a way to prevent a process from being swapped out of main memory?
> >The reason is a process is blocked on a read() call on the serial port.
> >Other programs use memory in the meantime such that this process is
> >swapped out by the time data comes in to the serial port.  Sometimes the
> >process is not not swapped back in fast enough (due to concurrent disk
> >access by other processes) and the data is not read properly.

> >So is there a way to speed up this swap-in to main memory or can I prevent
> >the swap-out in the first place?
> This is very system dependent.  What system are you running?  A bit
> more information would be useful.
> --

> Reasonable people adapt themselves to the world.  Unreasonable people
> attempt to adapt the world to themselves.  All progress, therefore,
> depends on unreasonable people.
>    -- George Bernard Shaw


 
 
 

1. Preventing Dial outs.

   How do i prevent users of my Linux system from dialing out?
I have two modems connected to my linux box, users dial in
on /dev/ttyS1-S2. My two dial out lines are set as:

   0 crw-rw-rw-   1 root     uucp       5,  65 Jun 18 12:24 /dev/cua1
   0 crw-rw-rw-   1 root     uucp       5,  66 Dec  1  1993 /dev/cua2

   Ideally, i would like to restrict the dialout to a group of users.

Any help much appreciated.
Thanks in advance,

Keith.

2. solaris 2.5.1

3. preventing the JVM from swapping to disk

4. END OF INPUT DATA ON BOOT?

5. Can you prevent a program from swapping??

6. adding a new disk on system

7. How to I prevent a 100 Mb program from swapping itself (with 512 Mb memory)

8. CROND problems

9. How can I prevent context swaps/interrupts on Sparc running 4.1.3

10. Can you prevent a program from swapping??

11. Prevent processes from becoming swapped out

12. how to prevent prevent .so-calling routine to crash from segfaults in .so