search for: newpage

Displaying 20 results from an estimated 432 matches for "newpage".

2009 May 14
1
Problem with viewports, print.trellis and more/newpage
Dear R-users, I have got the following problem. I need to create 4x2 arrays of xyplot's on several pages. The plots are created within a loop and plotted using the print function. It seems that I cannot find the proper grid syntax with my viewports, and the more/newpage arguments. The following script is a simplification but hopefully will suffice to illustrate my problem. Any suggestion from the list would be greatly appreciated. Sebastien ######### library(lattice) foo <- data.frame(x=1:10,y=1:10) for (i in 1:4) { #isnewpage <- FALSE plots...
2011 Aug 08
1
Overwriting imported function in another package
I am running into a limitation of the grid::grid.newpage function, for which I would like to overwrite this function with a slightly modified one. Hopefully this is a temporary working solution until the package gets updated. I found a way to overwrite the function in the package:grid namespace. However, lattice imports grid rather than depending on it....
2016 Mar 30
0
[PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page
...++++++++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 6c822a7b27e0..53529c805752 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -913,6 +913,14 @@ static int __unmap_and_move(struct page *page, struct page *newpage, put_anon_vma(anon_vma); unlock_page(page); out: + /* If migration is successful, move newpage to right list */ + if (rc == MIGRATEPAGE_SUCCESS) { + if (unlikely(__is_movable_balloon_page(newpage))) + put_page(newpage); + else + putback_lru_page(newpage); + } + return rc; } @@ -946...
2016 Mar 11
0
[PATCH v1 01/19] mm: use put_page to free page instead of putback_lru_page
...++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 3ad0fea5c438..bf31ea9ffaf8 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -907,6 +907,14 @@ static int __unmap_and_move(struct page *page, struct page *newpage, put_anon_vma(anon_vma); unlock_page(page); out: + /* If migration is scucessful, move newpage to right list */ + if (rc == MIGRATEPAGE_SUCCESS) { + if (unlikely(__is_movable_balloon_page(newpage))) + put_page(newpage); + else + putback_lru_page(newpage); + } + return rc; } @@ -940...
2011 Feb 15
0
Relationships between png resolution, axis.text$cex trellis setting, and paddings
...data.frame(x=-10:10,y=rnorm(21)) myplot <- xyplot(y~x,data=df, xlab="Whatever",ylab="Random") png(file='padding_test_normal_125.png', width=750, height=750, res=125) trellis.par.set(my.theme()) print(myplot, split=c(1,1,2,2), more=TRUE,newpage=TRUE) print(myplot, split=c(1,2,2,2), more=TRUE,newpage=FALSE) print(myplot, split=c(2,1,2,2), more=TRUE,newpage=FALSE) print(myplot, split=c(2,2,2,2), more=FALSE,newpage=FALSE) dev.off() png(file='padding_test_normal_150.png', width=900, height=900, res=150) trellis.par.set(...
2016 Apr 05
1
[PATCH v3 04/16] mm/balloon: use general movable page feature into balloon
...uld it test e.g. page->mapping instead? Or maybe if we manage to get rid of PAGE_MOVABLE_MAPCOUNT_VALUE, we can keep PAGE_BALLOON_MAPCOUNT_VALUE to simply distinguish balloon pages for stable_page_flags(). > @@ -1033,7 +1019,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage, > out: > /* If migration is successful, move newpage to right list */ > if (rc == MIGRATEPAGE_SUCCESS) { > - if (unlikely(__is_movable_balloon_page(newpage))) > + if (unlikely(PageMovable(newpage))) > put_page(newpage); > else > putback_lru_page(newp...
2016 Apr 05
1
[PATCH v3 04/16] mm/balloon: use general movable page feature into balloon
...uld it test e.g. page->mapping instead? Or maybe if we manage to get rid of PAGE_MOVABLE_MAPCOUNT_VALUE, we can keep PAGE_BALLOON_MAPCOUNT_VALUE to simply distinguish balloon pages for stable_page_flags(). > @@ -1033,7 +1019,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage, > out: > /* If migration is successful, move newpage to right list */ > if (rc == MIGRATEPAGE_SUCCESS) { > - if (unlikely(__is_movable_balloon_page(newpage))) > + if (unlikely(PageMovable(newpage))) > put_page(newpage); > else > putback_lru_page(newp...
2015 Jul 04
1
[RFCv2 4/5] mm/compaction: compaction calls generic migration
...unlikely(driver_page_migratable(page))) > + page->mapping->a_ops->putbackpage(page); > else > putback_lru_page(page); > } > @@ -844,15 +844,18 @@ static int __unmap_and_move(struct page *page, struct page *newpage, > } > } > > - if (unlikely(isolated_balloon_page(page))) { > + if (unlikely(driver_page_migratable(page))) { > /* > - * A ballooned page does not need any special attention from > + * A driver...
2015 Jul 04
1
[RFCv2 4/5] mm/compaction: compaction calls generic migration
...unlikely(driver_page_migratable(page))) > + page->mapping->a_ops->putbackpage(page); > else > putback_lru_page(page); > } > @@ -844,15 +844,18 @@ static int __unmap_and_move(struct page *page, struct page *newpage, > } > } > > - if (unlikely(isolated_balloon_page(page))) { > + if (unlikely(driver_page_migratable(page))) { > /* > - * A ballooned page does not need any special attention from > + * A driver...
2004 Aug 06
3
BUG: page-aligned data in libshout
...shout.user = stream.user self.shout.password = stream.password self.shout.mount = stream.mount self.shout.format = 'vorbis' self.shout.protocol = 'http' self.shout.open() def __call__(self, data) : self.ogg.bytesin(data) while 1: newpage = self.ogg.pageseek() if newpage == None : break if self.page == 0 : self.page = newpage continue if self.page.serialno != newpage.serialno : self.page.eos = 1 if newpage.pageno==0 : self.page.eos = 1 self.page.serialn...
2004 Aug 06
3
BUG: page-aligned data in libshout
...shout.user = stream.user self.shout.password = stream.password self.shout.mount = stream.mount self.shout.format = 'vorbis' self.shout.protocol = 'http' self.shout.open() def __call__(self, data) : self.ogg.bytesin(data) while 1: newpage = self.ogg.pageseek() if newpage == None : break if self.page == 0 : self.page = newpage continue if self.page.serialno != newpage.serialno : self.page.eos = 1 if newpage.pageno==0 : self.page.eos = 1 self.page.serialn...
2010 Jul 19
1
divide grid.newpage into two?
Hi, ? Is there some easy way to split the grid.newpage() into two columns? For example, how could I put the two forest plots below (meta1 and meta2) next to each other? library(meta) data(Olkin95) meta1 <- metabin(event.e, n.e, event.c, n.c,data=Olkin95, subset=c(41,47,51,59),sm="RR", meth="I",studlab=author) meta2=meta1 meta2$...
2015 Jun 26
8
[RFCv2 0/5] enable migration of driver pages
Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days) test. Sometimes even order-3 page allocation failed. It has memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic processing and 20~30 memory is reserved for zram. I found that many pages of GPU driver
2015 Jun 26
8
[RFCv2 0/5] enable migration of driver pages
Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days) test. Sometimes even order-3 page allocation failed. It has memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic processing and 20~30 memory is reserved for zram. I found that many pages of GPU driver
2016 May 09
0
[PATCH v5 03/12] mm: balloon: use general non-lru movable page feature
...;linux/gfp.h> #include <linux/err.h> +#include <linux/fs.h> /* * Balloon device information descriptor. @@ -62,6 +63,7 @@ struct balloon_dev_info { struct list_head pages; /* Pages enqueued & handled to Host */ int (*migratepage)(struct balloon_dev_info *, struct page *newpage, struct page *page, enum migrate_mode mode); + struct inode *inode; }; extern struct page *balloon_page_enqueue(struct balloon_dev_info *b_dev_info); @@ -73,45 +75,19 @@ static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) spin_lock_init(&balloon->pages_lock);...
2016 May 20
0
[PATCH v6 03/12] mm: balloon: use general non-lru movable page feature
...;linux/gfp.h> #include <linux/err.h> +#include <linux/fs.h> /* * Balloon device information descriptor. @@ -62,6 +63,7 @@ struct balloon_dev_info { struct list_head pages; /* Pages enqueued & handled to Host */ int (*migratepage)(struct balloon_dev_info *, struct page *newpage, struct page *page, enum migrate_mode mode); + struct inode *inode; }; extern struct page *balloon_page_enqueue(struct balloon_dev_info *b_dev_info); @@ -73,45 +75,19 @@ static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) spin_lock_init(&balloon->pages_lock);...
2009 Sep 19
3
reducing space between charts in lattice graphics
...el="Total Work") ) balance_chart <- xyplot(bal ~ date, xlab=list(label=""), ylab=list(label="Remaining Work") ) index_chart <- xyplot(index ~ date, col="red", type="b", pch=15) print(total_chart, split=c(1,1,1,3), position=c(0, 0, 1, 1), newpage=FALSE, more=TRUE) print(balance_chart, split=c(1,2,1,3), position=c(0, 0, 1, 1), newpage=FALSE, more=TRUE) print(index_chart, split=c(1,3,1,3), position=c(0, 0, 1, 1), newpage=TRUE, more=FALSE) [[alternative HTML version deleted]]
2015 Jun 26
0
[RFCv2 4/5] mm/compaction: compaction calls generic migration
...if (unlikely(isolated_balloon_page(page))) - balloon_page_putback(page); + if (unlikely(driver_page_migratable(page))) + page->mapping->a_ops->putbackpage(page); else putback_lru_page(page); } @@ -844,15 +844,18 @@ static int __unmap_and_move(struct page *page, struct page *newpage, } } - if (unlikely(isolated_balloon_page(page))) { + if (unlikely(driver_page_migratable(page))) { /* - * A ballooned page does not need any special attention from + * A driver page does not need any special attention from * physical to virtual reverse mapping procedures. * S...
2007 Aug 21
4
Formatting Sweave in R-News
Hi, I am editing a document for submission to the R-news newsletter, and in my article my Sweave code inserts a dynamically generated PDF report that my R program generates. However, when I insert the PDF using the following Sweave code: \newpage \includegraphics[scale=1.0]{\Sexpr{print(location)}} \newpage (in tex this looks like): \newpage \includegraphics[scale=1.0]{/home/arjun/sample.pdf} \newpage However, the r-news style package over-rides everything that I can set (including using the minipage option) to make my included PDF small...
2016 Mar 30
0
[PATCH v3 04/16] mm/balloon: use general movable page feature into balloon
...;linux/gfp.h> #include <linux/err.h> +#include <linux/fs.h> /* * Balloon device information descriptor. @@ -62,6 +63,7 @@ struct balloon_dev_info { struct list_head pages; /* Pages enqueued & handled to Host */ int (*migratepage)(struct balloon_dev_info *, struct page *newpage, struct page *page, enum migrate_mode mode); + struct inode *inode; }; extern struct page *balloon_page_enqueue(struct balloon_dev_info *b_dev_info); @@ -73,45 +75,19 @@ static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) spin_lock_init(&balloon->pages_lock);...