* RE: hugetlb bug
@ 2006-01-18 8:46 Zhang, Yanmin
0 siblings, 0 replies; 3+ messages in thread
From: Zhang, Yanmin @ 2006-01-18 8:46 UTC (permalink / raw)
To: William Lee Irwin III, HuaFeijun; +Cc: linux-kernel
>>-----Original Message-----
>>From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of William Lee Irwin III
>>Sent: 2006年1月18日 16:37
>>To: HuaFeijun
>>Cc: linux-kernel@vger.kernel.org
>>Subject: Re: hugetlb bug
>>
>>On Wed, Jan 18, 2006 at 04:00:03PM +0800, HuaFeijun wrote:
>>> Is it kernel bug? The code works normally on ia64 machine,howerver, on
>>> EM64T,it fails tot work.
>>> The function call of shmat will change /proc/meminfo;and the shmdt
>>> can't restore it to original content. How to restore it to original
>>> stauts?Thanks.
>>> Is it kernel bug? The code works normally on ia64 machine,howerver,
>>> on EM64T,it fails tot work. The function call of shmat will change
>>> /proc/meminfo file's content;and the shmdt can't restore the file's
>>> content. How to restore it to original stauts?Thanks.
Did you check ipc? Command 'ipcs -a" could show all shared memory. I guess you app doesn't call shmctl(..., IPC_RMID, ...) after shmdt. Use ipcrm to release them manually.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hugetlb bug
2006-01-18 8:00 HuaFeijun
@ 2006-01-18 8:37 ` William Lee Irwin III
0 siblings, 0 replies; 3+ messages in thread
From: William Lee Irwin III @ 2006-01-18 8:37 UTC (permalink / raw)
To: HuaFeijun; +Cc: linux-kernel
On Wed, Jan 18, 2006 at 04:00:03PM +0800, HuaFeijun wrote:
> Is it kernel bug? The code works normally on ia64 machine,howerver, on
> EM64T,it fails tot work.
> The function call of shmat will change /proc/meminfo;and the shmdt
> can't restore it to original content. How to restore it to original
> stauts?Thanks.
> Is it kernel bug? The code works normally on ia64 machine,howerver,
> on EM64T,it fails tot work. The function call of shmat will change
> /proc/meminfo file's content;and the shmdt can't restore the file's
> content. How to restore it to original stauts?Thanks.
Kernel versions for EM64T and ia64?
-- wli
^ permalink raw reply [flat|nested] 3+ messages in thread
* hugetlb bug
@ 2006-01-18 8:00 HuaFeijun
2006-01-18 8:37 ` William Lee Irwin III
0 siblings, 1 reply; 3+ messages in thread
From: HuaFeijun @ 2006-01-18 8:00 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
Is it kernel bug? The code works normally on ia64 machine,howerver, on
EM64T,it fails tot work.
The function call of shmat will change /proc/meminfo;and the shmdt
can't restore it to original content. How to restore it to original
stauts?Thanks.
[-- Attachment #2: meminfo --]
[-- Type: text/plain, Size: 2310 bytes --]
Is it kernel bug? The code works normally on ia64 machine,howerver, on EM64T,it fails tot work.
The function call of shmat will change /proc/meminfo file's content;and the shmdt
can't restore the file's content. How to restore it to original stauts?Thanks.
-------------------------------------------------------
=== before shmat ===
MemTotal: 2056388 kB
MemFree: 607300 kB
Buffers: 43976 kB
Cached: 134252 kB
SwapCached: 0 kB
Active: 151940 kB
Inactive: 63436 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 2056388 kB
LowFree: 607300 kB
SwapTotal: 4096564 kB
SwapFree: 4096564 kB
Dirty: 176 kB
Writeback: 0 kB
Mapped: 50880 kB
Slab: 93236 kB
Committed_AS: 90340 kB
PageTables: 3528 kB
VmallocTotal: 536870911 kB
VmallocUsed: 264436 kB
VmallocChunk: 536606243 kB
HugePages_Total: 500
HugePages_Free: 500
Hugepagesize: 2048 kB
=== after shmat ===
MemTotal: 2056388 kB
MemFree: 607300 kB
Buffers: 43976 kB
Cached: 134252 kB
SwapCached: 0 kB
Active: 151940 kB
Inactive: 63436 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 2056388 kB
LowFree: 607300 kB
SwapTotal: 4096564 kB
SwapFree: 4096564 kB
Dirty: 176 kB
Writeback: 0 kB
Mapped: 50880 kB
Slab: 93236 kB
Committed_AS: 90340 kB
PageTables: 3528 kB
VmallocTotal: 536870911 kB
VmallocUsed: 264436 kB
VmallocChunk: 536606243 kB
HugePages_Total: 500
HugePages_Free: 0
Hugepagesize: 2048 kB
=== after shmdt===
MemTotal: 2056388 kB
MemFree: 607300 kB
Buffers: 43976 kB
Cached: 134252 kB
SwapCached: 0 kB
Active: 151940 kB
Inactive: 63436 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 2056388 kB
LowFree: 607300 kB
SwapTotal: 4096564 kB
SwapFree: 4096564 kB
Dirty: 176 kB
Writeback: 0 kB
Mapped: 50880 kB
Slab: 93236 kB
Committed_AS: 90340 kB
PageTables: 3528 kB
VmallocTotal: 536870911 kB
VmallocUsed: 264436 kB
VmallocChunk: 536606243 kB
HugePages_Total: 500
HugePages_Free: 0
Hugepagesize: 2048 kB
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-18 8:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-18 8:46 hugetlb bug Zhang, Yanmin
-- strict thread matches above, loose matches on Subject: below --
2006-01-18 8:00 HuaFeijun
2006-01-18 8:37 ` William Lee Irwin III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).