public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP]  min_free_kbytes incorrect results
@ 2014-12-04 13:37 Viorel-Cătălin Răpițeanu
  2014-12-04 14:03 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Viorel-Cătălin Răpițeanu @ 2014-12-04 13:37 UTC (permalink / raw)
  To: ltp-list

Hi all,

I've been running 'min_free_kbytes' from 'runtest/mm', but everytime I'm 
getting an incorrect value on read. I've tried this test on different 
machines (different architectures) and with different versions of ltp, 
but I'm getting the same error on read. I've looked at the test, but the 
code seems fine. If anybody has any ideea why this isn't working please 
let me know.

The following log was generated using an up-to-date Arch Linux x64 using 
kernel: 3.17.4-1
-------------------------------------------------------------------------------------------------
min_free_kbytes    0  TINFO  :  set overcommit_memory to 2
min_free_kbytes    0  TINFO  :  set min_free_kbytes to 67584
min_free_kbytes    1  TBROK  :  min_free_kbytes = 6, but expect 67584
min_free_kbytes    2  TBROK  :  Remaining cases broken
min_free_kbytes    0  TINFO  :  set min_free_kbytes to 67584
min_free_kbytes    0  TINFO  :  set overcommit_memory to 0
incrementing stop
--------------------------------------------------------------------------------------------------
Please let me know if I can be of any assistance.

Kind regards,
Catalin

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] min_free_kbytes incorrect results
  2014-12-04 13:37 [LTP] min_free_kbytes incorrect results Viorel-Cătălin Răpițeanu
@ 2014-12-04 14:03 ` Cyril Hrubis
  0 siblings, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2014-12-04 14:03 UTC (permalink / raw)
  To: Viorel-C??t??lin R??pi??eanu; +Cc: ltp-list

Hi!
> I've been running 'min_free_kbytes' from 'runtest/mm', but everytime I'm 
> getting an incorrect value on read. I've tried this test on different 
> machines (different architectures) and with different versions of ltp, 
> but I'm getting the same error on read. I've looked at the test, but the 
> code seems fine. If anybody has any ideea why this isn't working please 
> let me know.
> 
> The following log was generated using an up-to-date Arch Linux x64 using 
> kernel: 3.17.4-1
> -------------------------------------------------------------------------------------------------
> min_free_kbytes    0  TINFO  :  set overcommit_memory to 2
> min_free_kbytes    0  TINFO  :  set min_free_kbytes to 67584
> min_free_kbytes    1  TBROK  :  min_free_kbytes = 6, but expect 67584

This failure comes from function set_sys_tune() from
testcases/kernel/mem/lib/mem.c

What the code does is to write to the specified file in /sys and then
reads it back to verify its content. And it looks like the number read
back is truncated so something seems to be broken.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] min_free_kbytes incorrect results
       [not found] <54806F17.7070404@gmail.com>
@ 2014-12-04 14:29 ` Cyril Hrubis
  0 siblings, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2014-12-04 14:29 UTC (permalink / raw)
  To: Viorel-C??t??lin R??pi??eanu; +Cc: ltp-list

Hi!
> Based on previous runs of this test, I can confirm that the number read 
> back is truncated (only the first digit is correctly read). I haven't 
> figured it out why is this happening.

First of all, is it really written correctly? I.e. does
cat /proc/sys/vm/min_free_kbytes shows the right value?

(you can insert system("cat /proc/sys/vm/min_free_kbytes"); as a quick
hack to the test source)

If so, it's broken while the value is read, otherwise it's wrongly
written.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-04 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 13:37 [LTP] min_free_kbytes incorrect results Viorel-Cătălin Răpițeanu
2014-12-04 14:03 ` Cyril Hrubis
     [not found] <54806F17.7070404@gmail.com>
2014-12-04 14:29 ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox