- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
  P3                     
     - 
    6, 7, 8, 9
 
- 
        b107
 - 
        x86
 - 
        linux, solaris_8
 
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8197250 | 8u192 | Shafi Ahmad | P3 | Resolved | Fixed | b01 | 
| JDK-8195255 | 8u172 | Shafi Ahmad | P3 | Resolved | Fixed | b03 | 
| JDK-8190021 | 8u162 | Shafi Ahmad | P3 | Resolved | Fixed | b04 | 
| JDK-8183634 | 8u161 | Shafi Ahmad | P3 | Resolved | Fixed | b01 | 
| JDK-8166105 | 8u152 | Shafi Ahmad | P3 | Resolved | Fixed | b01 | 
| JDK-8175145 | 8u151 | Shafi Ahmad | P3 | Resolved | Fixed | b01 | 
| JDK-8185179 | 8u144 | Shafi Ahmad | P3 | Resolved | Fixed | b31 | 
| JDK-8177172 | 8u141 | Unassigned | P3 | Resolved | Fixed | b01 | 
| JDK-8174019 | 8u131 | Shafi Ahmad | P3 | Resolved | Fixed | b06 | 
| JDK-8173345 | 8u121 | Shafi Ahmad | P3 | Closed | Fixed | b32 | 
| JDK-8192167 | emb-8u161 | Shafi Ahmad | P3 | Resolved | Fixed | b01 | 
| JDK-8184494 | emb-8u151 | Unassigned | P3 | Resolved | Fixed | b01 | 
| JDK-8178565 | emb-8u141 | Unassigned | P3 | Resolved | Fixed | b01 | 
| JDK-8174180 | emb-8u131 | Shafi Ahmad | P3 | Resolved | Fixed | b06 | 
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
#1 SMP Tue Aug 29 10:40:40 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
When limiting the available CPUs by Linux 'taskset' command, JVM obeys this limitation but Runtime.availableProcessors() always returns the number of CPUs where the hardware has.
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
 - 
                    
JDK-8166105 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8174019 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8174180 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8175145 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8177172 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8178565 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8183634 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8184494 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8185179 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8190021 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8192167 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8195255 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8197250 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Resolved
 
 -         
 - 
                    
JDK-8173345 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Closed
 
 -         
 - 
                    
JDK-8175906 Runtime.availableProcessors() ignores Linux taskset command
-         
     - Closed
 
 -         
 
- duplicates
 - 
                    
JDK-7003380 active_processor_count() unaware of cpusets
-         
     - Closed
 
 -         
 - 
                    
JDK-8140793 getAvailableProcessors may incorrectly report the number of cpus in Docker container
-         
     - Closed
 
 -         
 
- relates to
 - 
                    
JDK-8148987 [Linux] Allow building on older systems without CPU_ALLOC support
-         
     - Resolved
 
 -         
 - 
                    
JDK-8161993 G1 crashes if active_processor_count changes during startup
-         
     - Resolved
 
 -         
 - 
                    
JDK-6673124 Runtime.availableProcessors / os::active_processor_count wrong if unused processor sets exist
-         
     - Closed
 
 -         
 - 
                    
JDK-7010724 Red Hat Enterprise Linux box hangs (becomes inaccessible) when ParallelGCThreads in Sun JVM are high
-         
     - Closed
 
 -         
 - 
                    
JDK-8147905 Verify all uses of os::processor_count()
-         
     - Closed
 
 -         
 - 
                    
JDK-6988568 RFE: Java SE to be resource pool aware
-         
     - Closed
 
 -         
 - 
                    
JDK-8165153 Crash in rebuild_cpu_to_node_map
-         
     - Resolved
 
 -         
 - 
                    
JDK-8188310 Runtime.getRuntime().availableProcessors() returns wrong value
-         
     - Closed
 
 -         
 - 
                    
JDK-5048379 API for obtaining low-level CPU information (e.g., socket count and CPU model)
-         
     - Open
 
 -