Limiting max load and max netuse

Limiting max load and max netuse

Post by Niklas Sae » Tue, 09 Jan 2001 12:48:23



Hi. nice(1) is a very neat thing, but I wondered if there are
some similar mechanisms which allow me to do the following:

  make sure no one application uses more than 30% of the CPU
  make sure no one application uses more than 50 kb/sec in
    bandwidth

??

Cheers

   Niklas Saers

 
 
 

Limiting max load and max netuse

Post by Matthew L Creec » Tue, 09 Jan 2001 22:02:21


man login.conf

This allows you to set limits on a per-login basis, if that's similar to
what you're looking for - hope this helps

--
Matthew L. Creech

 
 
 

Limiting max load and max netuse

Post by Lowell Gilber » Wed, 10 Jan 2001 03:41:23



> Hi. nice(1) is a very neat thing, but I wondered if there are
> some similar mechanisms which allow me to do the following:

>   make sure no one application uses more than 30% of the CPU

Not that I know of.  The design of Unix assumes that there's no point
in *not* giving cycles to even the lowest priority task, as long as
those cycles would have gone to waste anyway.

Without knowing exactly why you'd want to do this, I can't be sure
what advice will be helpful, but I suspect that the existing
login.conf(5) capabilities will avoid any particular abuse problems
you may be facing.  Among other things, it lets you specify the base
priority ("nice") level for a user, as well as limits on things like
total CPU time, memory usage, and so on.

Quote:>   make sure no one application uses more than 50 kb/sec in
>     bandwidth

dummynet(4) can do this.  Its man page is a little terse, but it
doesn't look very hard.  It uses ipfw(8) as a user interface, so you
can only apply it to things that can be recognized by that program
(which means that IP address, local user, and local group are easy,
but not really "application").

Good luck.

 
 
 

1. Limit of MAX VGs and MAX FileSystems per machine

Hi Netters,

        Does AIX have a limit on the maximum number of File
Systems defined? (Note not mounted).

        Also, is there a maximum number of VGs allowed per system?

        I am trying to write an application with support for removeable
storage media, and have to make each media a seperate file system.
Therefore the question on these limits.

P.S. I am running AIX 3.2 on a RS6K 320H.

        Any and all responses appreciated.

Raj.
--
===============================================================================
  __  __     .
 /   __/    /                               Raj Malhotra.
/   ( /_   /                                voice : (908)613 4313.

===============================================================================

2. Media failure when using RAID

3. MAX i-nodes, MAX open files tuning?

4. US Robotics Modems and SLIP/PPP??

5. $299.95 /mo Max/Max 10 GB $119 /GB Charged

6. Activity LED on the front of an E250

7. 2.4-ac: separate max RT from max user RT

8. Problem mounting SGI from Linux

9. iPlanet Error: JVM exit statistics: AttachedThreads/Max=0/0, ActiveThreads/Max=0/0

10. Max Socket & Max Processes

11. kernel: grow_inodes: inode-max limit reached

12. Fwd from bugtraq: Linux kernels DoSable by file-max limit

13. max. size limit for mblk's